Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Printing values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-03-15 (12:51)
From: Yoann Padioleau <padiolea@i...>
Subject: Re: [Caml-list] Printing values
Christian Stork <> writes:

> This must be a dumb question, but I couldn't find an answer.
> How can I print values of my own data types in the default way, eg, as
> the debugger or the toplevel does it?  Is there a standard formatter
> that I can use (or generate), or do I have to write a new formatter for
> each data type? 

you can try this:

or this (better):

> Thanks,
> Chris

Yoann  Padioleau,  INSA de Rennes, France
Opinions expressed here are only mine. Je n'écris qu'à titre personnel.
**____   Get Free. Be Smart.  Simply use Linux and Free Software.   ____**