caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Mutually recursive types in different modules
@ 2008-07-14 16:50 Andre Nathan
  2008-07-14 17:04 ` [Caml-list] " Jon Harrop
  2008-07-14 17:43 ` Martin Jambon
  0 siblings, 2 replies; 6+ messages in thread
From: Andre Nathan @ 2008-07-14 16:50 UTC (permalink / raw)
  To: caml-list

Hello

Say I have the following type definition:

  type a = { x: int; foo: b } and  b = { y: int; bar: a }

Is it possible to define types a and b in their own files (thus in
modules A and B) and still allow them to be mutually recursive?

Thanks in advance,
Andre


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

end of thread, other threads:[~2008-07-14 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-14 16:50 Mutually recursive types in different modules Andre Nathan
2008-07-14 17:04 ` [Caml-list] " Jon Harrop
2008-07-14 17:50   ` Andre Nathan
2008-07-14 17:57   ` Arthur Chan
2008-07-14 18:04     ` Andre Nathan
2008-07-14 17:43 ` Martin Jambon

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