Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Polymorphic class recursion (?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lukasz Stafiniak <luk_stafi@w...>
Subject: [Caml-list] Polymorphic class recursion (?)
Hi,

# class c1 = object val v1 : unit #c2 option = None val v2 : bool #c2 option
= None end and ['a] c2 = object val v1 : #c1 option = None end;;
Characters 59-67:
  class c1 = object val v1 : unit #c2 option = None val v2 : bool #c2 option
= None end and ['a] c2 = object val v1 : #c1 option = None end;;
                                                             ^^^^^^^^
This type unit should be an instance of type bool

Why? This works for records. (Switching to class types (class --> class
type, without = parts) doesn't help.)

Thanks in advance,
Best Regards,
Lukasz


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