And this works too :
>> I don't understand why foo1 is fine and foo2 isn't. I would haveThe question is why foo1 doesn't need this and foo2 does.
>> thought that I can use foo2 wherever I can foo1 since it has a
>> strictly more general type.
>> Am I missing something obvious here?
>
> Its probably due to the optional labels, this works:
> let y = () |! foo2 ?x:None ?y:None
--
Caml-list mailing list. Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs