Hello,
On 26 January 2011 12:58, Julien Signoles <julien.signoles@gmail.com> wrote:There are safer approaches (than Obj) to a "universal type" described here:
> How to convert the following ocaml 3.12 code into a typable ocaml < 3.12
> code?
> I have a solution using Obj. Is it possible without Obj?
http://ocaml.janestreet.com/?q=node/18
Whether your problem can be solved with such an approach depends on
how flexible your definition of "the same [type]" is. You can
certainly write a function of the same type and behaviour as 'f' that
way, though.