From: Keith Wansbrough <Keith.Wansbrough@cl.cam.ac.uk>
To: "Sébastien Hinderer" <Sebastien.Hinderer@ens-lyon.org>
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Continuations
Date: Mon, 16 Aug 2004 10:46:56 +0100 [thread overview]
Message-ID: <E1Bwe4u-00088T-00@mta1.cl.cam.ac.uk> (raw)
In-Reply-To: Your message of "Fri, 13 Aug 2004 23:27:22 +0200." <20040813212722.GA1158@galois>
> Could someone explain me how the functions from the Printf module work, and
> why continuations allow to consume the extra arguments given after the
> format string ?
OCaml contains special magic to parse the format strings - they aren't
really strings. Try doing
Printf.printf (if true then "%s,%s" else "%s.%s") "foo" "bar"
and see what happens... (you have to use Pervasives.format_of_string
to make it work).
--KW 8-)
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-08-16 9:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-13 21:27 Sébastien Hinderer
2004-08-16 9:46 ` Keith Wansbrough [this message]
2004-08-23 22:32 ` Nathaniel Gray
2004-08-24 6:47 ` skaller
2004-08-24 22:18 ` Nathaniel Gray
2004-08-25 11:13 ` skaller
-- strict thread matches above, loose matches on Subject: below --
2006-08-30 15:24 Continuations Tom
2006-08-30 17:08 ` [Caml-list] Continuations Jacques Carette
2002-12-10 18:49 Ceri Storey
2002-12-11 9:19 ` Christophe Raffalli
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=E1Bwe4u-00088T-00@mta1.cl.cam.ac.uk \
--to=keith.wansbrough@cl.cam.ac.uk \
--cc=Sebastien.Hinderer@ens-lyon.org \
--cc=caml-list@pauillac.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