caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] opaque polymorphism
@ 2001-09-07 18:35 Charles Martin
  2001-09-10  7:02 ` Francois Pottier
  0 siblings, 1 reply; 9+ messages in thread
From: Charles Martin @ 2001-09-07 18:35 UTC (permalink / raw)
  To: caml-list

A feature that would be nice would be to hide the polymorphism of a type in a
module signature:

foo.ml:
type ('a, 'b, 'c) t = { ... }

foo.mli:
type ('a, 'c) t

Thus, clients of Foo would be unaware of the polymorphism in 'b.  This would
require that type variables in signatures and structures be matched on their
names, obviously.

Can any of the type experts out there tell me if this is possible?


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-09-14 19:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-07 18:35 [Caml-list] opaque polymorphism Charles Martin
2001-09-10  7:02 ` Francois Pottier
2001-09-10 23:19   ` Phantom types (very long) (Was Re: [Caml-list] opaque polymorphism) Brian Rogoff
2001-09-11  9:44     ` Andreas Rossberg
2001-09-11 18:38     ` [Caml-list] Re: Phantom types (very long) j h woodyatt
2001-09-11 19:16       ` Brian Rogoff
2001-09-12  9:33       ` Daan Leijen
2001-09-14  8:49       ` Jacques Garrigue
2001-09-14 19:10         ` Brian Rogoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).