From: "Till Varoquaux" <till.varoquaux@gmail.com>
To: "ocaml ml" <caml-list@inria.fr>
Subject: Printf issues
Date: Fri, 16 Mar 2007 19:34:03 +0100 [thread overview]
Message-ID: <9d3ec8300703161134o3866014bie47bf052b20b722@mail.gmail.com> (raw)
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...
next reply other threads:[~2007-03-16 18:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 18:34 Till Varoquaux [this message]
2007-03-17 11:56 ` [Caml-list] " Philippe Wang
2007-03-17 13:31 ` Nicolas Pouillard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9d3ec8300703161134o3866014bie47bf052b20b722@mail.gmail.com \
--to=till.varoquaux@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox