Version française
Home     About     Download     Resources     Contact us    
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 =
   object
      method f  : a
   end
and a =
    object(self)
         method f = self
         method g (x:a_t) = x#f
    end


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