caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Francois Berenger <berenger@riken.jp>
To: Caml-list <caml-list@inria.fr>
Subject: [Caml-list] string to Printf format type conversion
Date: Fri, 30 Nov 2012 18:19:55 +0900	[thread overview]
Message-ID: <50B87A3B.9060505@riken.jp> (raw)

Hello,

Is it possible to have:

---
open Printf
module C = Color

(* this *)
fprintf out (C.to_string_format color);
(* instead of *)
fprintf out "%s" (C.to_string color);
---

What should be the code of to_string_format
if it is possible to do so?

Thanks a lot,
F.

             reply	other threads:[~2012-11-30  9:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-30  9:19 Francois Berenger [this message]
2012-11-30  9:45 ` Malcolm Matalka
2012-11-30 14:32 ` Edgar Friendly

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=50B87A3B.9060505@riken.jp \
    --to=berenger@riken.jp \
    --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;
as well as URLs for NNTP newsgroup(s).