* Format.printf broken
@ 1999-11-21 18:28 Matías Giovannini
1999-11-22 17:24 ` Pierre Weis
0 siblings, 1 reply; 2+ messages in thread
From: Matías Giovannini @ 1999-11-21 18:28 UTC (permalink / raw)
To: Caml List
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
--
I've got your message. I couldn't read it: it was a cryptogram
-- Laurie Anderson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Format.printf broken
1999-11-21 18:28 Format.printf broken Matías Giovannini
@ 1999-11-22 17:24 ` Pierre Weis
0 siblings, 0 replies; 2+ messages in thread
From: Pierre Weis @ 1999-11-22 17:24 UTC (permalink / raw)
To: matias; +Cc: caml-list
> 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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-22 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-21 18:28 Format.printf broken Matías Giovannini
1999-11-22 17:24 ` Pierre Weis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox