caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Printf issues
@ 2007-03-16 18:34 Till Varoquaux
  2007-03-17 11:56 ` [Caml-list] " Philippe Wang
  2007-03-17 13:31 ` Nicolas Pouillard
  0 siblings, 2 replies; 3+ messages in thread
From: Till Varoquaux @ 2007-03-16 18:34 UTC (permalink / raw)
  To: ocaml ml

I having typing issues with sprintf:

# Printf.sprintf "%a";;
- : (unit -> '_a -> string) -> '_a -> string = <fun>

whereas:

# Printf.printf "%a";;
- : (out_channel -> '_a -> unit) -> '_a -> unit = <fun>

Am I missing something out here? If not why can't sprintf accept the
same printers as the other?

Cheers,
Till

PS: This affects Ocaml 3.9.03 and 3.10 beta, Format and Printf...


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

end of thread, other threads:[~2007-03-17 13:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 18:34 Printf issues Till Varoquaux
2007-03-17 11:56 ` [Caml-list] " Philippe Wang
2007-03-17 13:31 ` Nicolas Pouillard

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