caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] selective printf-like function
@ 2002-11-21  1:21 Andy Chou
  2002-11-21 17:17 ` Chris Hecker
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Chou @ 2002-11-21  1:21 UTC (permalink / raw)
  To: caml-list

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 
help.

-Andy
-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-22  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21  1:21 [Caml-list] selective printf-like function Andy Chou
2002-11-21 17:17 ` Chris Hecker
2002-11-22  9:41   ` Pierre Weis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).