caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Possible bug in module and class?
@ 2002-10-18 20:16 Bow-Yaw Wang
  2002-10-21  6:26 ` Jacques Garrigue
  0 siblings, 1 reply; 13+ messages in thread
From: Bow-Yaw Wang @ 2002-10-18 20:16 UTC (permalink / raw)
  To: caml-list


Hi,

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

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

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

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

class my_obj : my_obj_type = 
  object (self) 
    method me = Eq.you self 
  end

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.

Thanks,

Bow-Yaw


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2002-10-22 14:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-18 20:16 [Caml-list] Possible bug in module and class? Bow-Yaw Wang
2002-10-21  6:26 ` Jacques Garrigue
2002-10-21 12:16   ` Alessandro Baretta
2002-10-21 12:32     ` Luc Maranget
2002-10-21 12:51       ` Alessandro Baretta
2002-10-22  2:16     ` Jacques Garrigue
2002-10-22  4:35       ` [Caml-list] Camlp4 pretty print comments Quetzalcoatl Bradley
2002-10-22 11:15         ` Daniel de Rauglaudre
2002-10-22 12:40           ` Sven Luther
2002-10-22 13:18           ` Stefano Zacchiroli
2002-10-22 13:44             ` Maxence Guesdon
2002-10-22 14:21             ` Daniel de Rauglaudre
2002-10-21 21:00   ` [Caml-list] Possible bug in module and class? Bow-Yaw Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).