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] record type constraint
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-09-16 (05:40)
From: Frank Dellaert <dellaert@c...>
Subject: [Caml-list] record type constraint

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

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.

Frank Dellaert
Asst. Professor, College of Computing
Georgia Institute of Technology

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: