Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Polymorphic methods
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-11-20 (20:56)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Polymorphic methods
> After two years, my promises may seem void, but I intend to
> implement polymorphic methods, probably as soon as 3.03 is released.
> Or should I start before?  This is a rather large chunk of work,
> modifying very sensitive parts of the compiler...
> What would you need them for?

I believe my ever-ongoing Caml/Java mapping could make good use of
polymorphic methods.  Indeed, in this particular example of
translating a Java class hierarchy to Caml, polymorphic methods seem
to offer exactly what is needed to simulate Java-like implicit
subsumption with OCaml's row polymorphism.

This said, I understand polymorphic methods impact the type inference
engine quite a lot, and I'm not pushing for additional complexity in
this (already rather hairy) part of the OCaml implementation...

- Xavier Leroy
Bug reports:  FAQ:
To unsubscribe, mail  Archives: