
25 Sep
2009
25 Sep
'09
5:25 p.m.
On Fri, Sep 25, 2009 at 8:14 PM, Job Vranish
Supposedly OCaml has an OO feature that does this but I haven't tried it out.
Indeed, OCaml has stuctural polymorphism, it's a wonderful feature. *# let f myobj = myobj#foo "Hi !";; val f : < foo : string -> 'a; .. > -> 'a = <fun>* IIRC, there has been work on Template Haskell for structural polymorphism. -- Alp Mestan http://blog.mestan.fr/ http://alp.developpez.com/