From: Malcolm Matalka <mmatalka@gmail.com>
To: Francois Berenger <berenger@riken.jp>
Cc: Caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] string to Printf format type conversion
Date: Fri, 30 Nov 2012 04:45:17 -0500 [thread overview]
Message-ID: <87ehjbqv9u.fsf@li195-236.members.linode.com> (raw)
In-Reply-To: <50B87A3B.9060505@riken.jp> (Francois Berenger's message of "Fri, 30 Nov 2012 18:19:55 +0900")
If you want the equivalent of fprintf out "%s" (C.to_string color); but
with less typing, why not output_string out (C.to_string color) ?
Francois Berenger <berenger@riken.jp> writes:
> 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.
next prev parent reply other threads:[~2012-11-30 9:45 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 [this message]
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=87ehjbqv9u.fsf@li195-236.members.linode.com \
--to=mmatalka@gmail.com \
--cc=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).