Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Format question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oleg <oleg_inconnu@m...>
Subject: [Caml-list] Format question
Hi

Is it possible to define a printf that automatically flushes stdout?

let my_printf x = Printf.printf x; flush stdout;;

my_printf "%i" 3;;

doesn't work (Incorrect number of arguments, as the type of my_printf is 
different from Printf.printf)

Oleg
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners