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] Recursive class/class type
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: szegedy@t...
Subject: [Caml-list] Recursive class/class type
I realiyed that I sometimes need not only recursive
classes but also mixed recursive types and interfaces.

Something like this:

class type a_t =
      method f  : a
and a =
         method f = self
         method g (x:a_t) = x#f

The current Ocaml implementation does not allows this.
Are there plans to allow types and class types in the same
recursive declaration block?

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