Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
class and printf
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Anastasia Gornostaeva <ermine@e...>
Subject: class and printf

What I need to drink to compile it?

class foo ch =
 method myprintf = Printf.fprintf ch

The compiler says 
The method myprintf has type ('a, out_channel, unit) format -> 'a where 'a
is unbound