On Mon, Aug 21, 2006 at 01:11:48PM -0000, LORENZO wrote:
> There is a print_any function of
> F# can output any type of data on console.
>
> Does OCaml have similar function to use?
Not directly, but Std.dump in extlib can dump out the
internals of
most OCaml structures. I think it's also possible to link
the toploop
into OCaml binaries and print values the same way as they
are printed
interactively, but I can't find the reference right now ...
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|