caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Robert Jakob <rj@robertjakob.de>
To: caml-list@inria.fr
Cc: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com>
Subject: Re: [Caml-list] is there a way for turning strings to "format"s?
Date: Wed, 6 Nov 2013 13:50:38 +0100	[thread overview]
Message-ID: <20131106135038.6fbbcacf@jakobro-VirtualBox> (raw)
In-Reply-To: <527A389B.9070408@gmail.com>

> My question is: is it possible to turn strings to values that would
> be accepted by Printf.printf as its first parameter?

You might be able to use Scanf.format_from_string:
http://caml.inria.fr/pub/docs/manual-ocaml/libref/Scanf.html#VALformat_from_string

r.

  parent reply	other threads:[~2013-11-06 12:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06 12:39 Matej Kosik
2013-11-06 12:44 ` Simon Cruanes
2013-11-06 12:50 ` Robert Jakob [this message]
2013-11-06 12:57 ` Jeremy Yallop
2013-11-06 13:08   ` Matej Kosik
2013-11-06 12:54 "Mark Adams"
2013-11-07  7:33 ` Gabriel Scherer
2013-11-07  7:50   ` David MENTRE
2013-11-07 20:45     ` Ollie Frolovs
2013-11-07 21:14       ` Yaron Minsky

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=20131106135038.6fbbcacf@jakobro-VirtualBox \
    --to=rj@robertjakob.de \
    --cc=5764c029b688c1c0d24a2e97cd764f@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).