caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Edgar Friendly <thelema314@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] string to Printf format type conversion
Date: Fri, 30 Nov 2012 09:32:42 -0500	[thread overview]
Message-ID: <50B8C38A.3040306@gmail.com> (raw)
In-Reply-To: <50B87A3B.9060505@riken.jp>

You should be able to chain printfs with:

fprintf out "Color: %a" C.to_string_format color

E.

On 11/30/2012 4:19 AM, Francois Berenger wrote:
> 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.
>


      parent reply	other threads:[~2012-11-30 14:32 UTC|newest]

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

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=50B8C38A.3040306@gmail.com \
    --to=thelema314@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;
as well as URLs for NNTP newsgroup(s).