From: Rodolphe Lepigre <rodolphe.lepigre@univ-savoie.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Printf.sprintf "%a"
Date: Fri, 8 Jul 2016 10:01:34 +0200 [thread overview]
Message-ID: <20160708080134.GK11971@HPArchRod.localdomain> (raw)
Dear list,
If I define two values
val p : type out_channel -> blop -> unit
val e : blop
then I can do something like
Printf.printf "%a" p e
but I can't find a way to do something like
Printf.sprintf "%a" p e
which is not well-typed. Is there any trick that I can use to avoid
changing the type of [p] to [blop -> string]?
Cheers,
Rodolphe
--
Rodolphe Lepigre
LAMA, Université Savoie Mont Blanc, FRANCE
http://lama.univ-smb.fr/~lepigre/
next reply other threads:[~2016-07-08 8:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 8:01 Rodolphe Lepigre [this message]
2016-07-08 8:08 ` Nicolas Ojeda Bar
2016-07-08 8:16 ` Rodolphe Lepigre
2016-07-08 10:53 ` Gabriel Scherer
2016-07-09 7:26 ` Jonathan Protzenko
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=20160708080134.GK11971@HPArchRod.localdomain \
--to=rodolphe.lepigre@univ-savoie.fr \
--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