From: Remi Vanicat <remi.vanicat@laposte.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml internal pretty-printing
Date: Wed, 25 Feb 2004 08:13:13 +0100 [thread overview]
Message-ID: <87brnnws1i.dlv@vanicat.homelinux.org> (raw)
In-Reply-To: <1077660121.403bc9d936dfb@imp5-q.free.fr> (J. B. Domelevo's message of "Tue, 24 Feb 2004 23:02:01 +0100")
"J.B. Domelevo" <j.domelevo@free.fr> writes:
> I can't get any information about how Ocaml handles the pretty-printing of basic
> values as lists or arrays. For instance :
>
> let rec l = 0 :: l ;;
>
> which builds an infinite list of zeros, is print until a certain point, and then
> the interactive OCaml ends with "..."
> The same occurs, of course, when Ocaml is given 'l;;'
> Anyone knowing how the internal pretty-printer can be tuned or even turned on
> and off ?
You should look to the Format module of the stdlib. Pretty printing is
done with it.
--
Rémi Vanicat
-------------------
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
prev parent reply other threads:[~2004-02-25 7:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-24 22:02 J.B. Domelevo
2004-02-25 7:13 ` Remi Vanicat [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=87brnnws1i.dlv@vanicat.homelinux.org \
--to=remi.vanicat@laposte.net \
--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