Browse thread
[Caml-list] record type constraint
- Frank Dellaert
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Frank Dellaert <dellaert@c...> |
| Subject: | [Caml-list] record type constraint |
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