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] Nested classes and types
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Boris Yakobowski <Boris.Yakobowski@e...>
Subject: [Caml-list] Nested classes and types
I need to declare two types depending one on the other ; one of them is
a class type, with a menber variable of the second type, and the other
one is a basic type with a constructor needing an argument of the first

Example :

  class type c_foo =
    val val_foo : t_foo
  t_foo = Foo of c_foo

However, that syntax doesn't work ; is there a correct one ?

Thank you for hour help.

Boris Yakobowski

Bug reports:  FAQ:
To unsubscribe, mail  Archives: