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
equivalent of Lisp's `print'?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Colin Walters <walters@c...>
Subject: equivalent of Lisp's `print'?

A quick newbie question:  Is there a way I can print any data type,
like ones I have defined myself?  Something like Lisp's `print'
function would be great.  The OCaml compiler does this when you type
expressions at the toplevel; can I access this from my code?

By the way; I'm surprised that the Caml Hump wasn't prominently listed
on the OCaml web page!  I think libraries and utility software are an
important part of a language's success.  For example, the
OcamlMakefile saved me a fair amount of time.