English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] OCaml internal pretty-printing
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-25 (07:13)
From: Remi Vanicat <remi.vanicat@l...>
Subject: Re: [Caml-list] OCaml internal pretty-printing
"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