Browse thread
equivalent of Lisp's `print'?
- Colin Walters
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2000-11-14 (14:18) |
From: | Colin Walters <walters@c...> |
Subject: | equivalent of Lisp's `print'? |
Hello, 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.