Version française
Home     About     Download     Resources     Contact us    
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
Hello.

What I need to drink to compile it?

class foo ch =
object
 method myprintf = Printf.fprintf ch
end

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