From: Nicolas C. <war...@fr...> - 2005-02-08 10:06:34
|
> Yes, good idea. Since I don't have access to ocaml-lib CVS, do you > want to add it? The function is only about a page of code. The following have been added to Std module : val dump : 'a -> string (** reprensent a runtime value as a string. *) val print : 'a -> unit (** print the representation of a runtime value on stdout. *) I slightly modified indentation and style of your dump method, I think the result ( a matching with where clauses ) is more readable than if-blocks and might produce equivalent code with ocamlopt. Nicolas |