printing

"Hendrik Boom [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
When I run ocaml interactively, it prints me the values of expressions I 
type, using its own conventions as to formatting.

Presumably the intepreter has a function that does that printing.

Is it possible to call that function from OCaml code?  That would be 
useful diring debugging.  Otherwise I'd have to define custom printing 
functions for every type I might have to writnt during debugging.  Those 
functinos might not be called any other time, and the interpreter's 
print routine might be quite sufficient.

Not to mention not haveing to worry whether the bug is in the code I'm 
debuging or in my print routine.

-- hendrik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.