From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA19714; Fri, 27 Jun 2003 19:22:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA19753 for ; Fri, 27 Jun 2003 19:22:34 +0200 (MET DST) Received: from a.mx.jura.hu (a.mx.jura.hu [195.184.18.1]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id h5RHMYj17320 for ; Fri, 27 Jun 2003 19:22:34 +0200 (MET DST) Received: (qmail 17654 invoked from network); 27 Jun 2003 15:30:11 -0000 Received: from line-29-122.dial.matav.net (HELO babo) (elso@145.236.29.122) by 0 with SMTP; 27 Jun 2003 15:30:11 -0000 Date: Fri, 27 Jun 2003 17:35:49 +0200 From: Babo Attila X-Mailer: The Bat! (v1.62i) Personal Reply-To: Babo Attila X-Priority: 3 (Normal) Message-ID: <76516923376.20030627173549@glenisys.hu> To: caml-list@inria.fr Subject: [Caml-list] Oo.copy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; attila:01 ocamlc:01 3.06:01 compiler:01 ocaml:01 inherit:01 compile:02 interpreter:03 object:03 dup:05 hangs:06 linux:09 debian:09 virtual:10 self:10 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk What's wrong with this code? When I try to compile it using ocamlc 3.06 the compiler hangs on Win32 and on Debian Linux as well. The ocaml interpreter does the same. It works when I changed Oo.copy self to {<>} or simply self. class virtual duplicatable = object (_ : 'a) method virtual dup : 'a end class test = object (self) inherit duplicatable method dup = Oo.copy self end ------------------- 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