From: Pierre Weis <Pierre.Weis@inria.fr>
To: matias@k-bell.com
Cc: caml-list@inria.fr
Subject: Re: Format.printf broken
Date: Mon, 22 Nov 1999 18:24:57 +0100 (MET) [thread overview]
Message-ID: <199911221724.SAA27015@pauillac.inria.fr> (raw)
In-Reply-To: <383839C9.61A4136E@k-bell.com> from "=?iso-8859-1?Q?Mat=EDas?= Giovannini" at Nov 21, 99 03:28:25 pm
> Straight from an example in Format.mli:
>
> # Format.printf "@\[%s@ %d@\]" "x =" 1 ;;
> Uncaught exception: Invalid_argument("fprintf: unknown format \\")
>
> OCaml 2.03/Mac1.0a6
>
> Regards,
> Matías
There is no bug here, but a slight misunderstanding of the status of
.mli files wrt the documentation.
The documentation for the Caml modules M is not the verbatim m.mli
file, that is only the {\em source} of the documentation. In the
documentation extracted from format.mli, the example reads:
printf "@[%s@ %d@]" "x =" 1;;
and works perfectly.
Best regards,
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/
prev parent reply other threads:[~1999-11-22 17:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-21 18:28 Matías Giovannini
1999-11-22 17:24 ` Pierre Weis [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=199911221724.SAA27015@pauillac.inria.fr \
--to=pierre.weis@inria.fr \
--cc=caml-list@inria.fr \
--cc=matias@k-bell.com \
/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).