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] Possible bug in module and class?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Bow-Yaw Wang <bywang@s...>
Subject: [Caml-list] Possible bug in module and class?


I don't know if anyone has encountered this. But I'm able
to hang both ocamltop and ocamlc (v 3.06) by the following

class type my_obj_type = 
  object ('a) 
    method me : 'a 

module type EQ_TYPE = 
    val you : (#my_obj_type as 'a) -> 'a 

module Eq : EQ_TYPE = struct let you o = o end

class my_obj : my_obj_type = 
  object (self) 
    method me = self 

ocamltop doesn't return after I key in my_obj. If I 
separate the code into .mli and .ml, ocamlc hangs
while compiling my_obj. :(

Sorry about the silly code segment. It is in fact
a simplified version of real code. Any help will
be appreciated.



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