printing
| 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