caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] record type constraint
@ 2003-09-16  5:40 Frank Dellaert
  0 siblings, 0 replies; only message in thread
From: Frank Dellaert @ 2003-09-16  5:40 UTC (permalink / raw)
  To: caml-list

Hi

One of my projects asks for a type constraint in multi-argument functor as
follows:

Module Make (A: BLA) (B: BLA with type t = {a:A.x;b:A.y}) = struct ... end

In other words, I want to constrain t to be a record type with types as
defined in A (and declared abstract in the signature BLA). Unfortunately,
the obvious way above does not seem to work. Can anyone tell me how to do
this ?

Please also cc me in your response to the list.

Cheers
Frank Dellaert
---------------------------------------------------------------------------
Asst. Professor, College of Computing
Georgia Institute of Technology
http://www.cc.gatech.edu/~dellaert/

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-16  5:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-16  5:40 [Caml-list] record type constraint Frank Dellaert

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).