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
[Caml-list] selective printf-like function
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-21 (16:50)
From: Andy Chou <acc@C...>
Subject: [Caml-list] selective printf-like function
I'd like to write a function that will optionally print something.  It 
seems simple, but I also want it to be able to take format strings and act 
like printf.  So for example,

	my_printf "%d" 0

but it should only print if a certain condition is true, which it
evaluates first.

I haven't had any luck yet, and I was wondering if any Caml gurus could 

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: