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 NAA00376; Thu, 15 Nov 2001 13:03:18 +0100 (MET) 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 NAA00535 for ; Thu, 15 Nov 2001 13:03:17 +0100 (MET) Received: from scan2.fhg.de (scan2.fhg.de [153.96.1.37]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fAFC38j29866 for ; Thu, 15 Nov 2001 13:03:17 +0100 (MET) Received: from scan2.fhg.de (localhost [127.0.0.1]) by scan2.fhg.de (8.11.1/8.11.1) with ESMTP id fAFC37U12351 for ; Thu, 15 Nov 2001 13:03:07 +0100 (MET) Received: from kso.ilt.fhg.de (eeltc2.llt.RWTH-Aachen.DE [137.226.44.2]) by scan2.fhg.de (8.11.1/8.11.1) with ESMTP id fAFC34M12347 for ; Thu, 15 Nov 2001 13:03:04 +0100 (MET) Received: from ilt.fhg.de (ilt.ilt.fhg.de [153.96.180.2]) by kso.ilt.fhg.de (8.11.1/8.11.1) with ESMTP id fAFC5G703478 for ; Thu, 15 Nov 2001 13:05:16 +0100 (MET) Received: from eent359 (localhost [127.0.0.1]) by ilt.fhg.de (8.11.1/8.11.1) with ESMTP id fAFC3WC27839 for ; Thu, 15 Nov 2001 13:03:32 +0100 (MET) From: "Rolf Wester" To: caml-list@inria.fr Date: Thu, 15 Nov 2001 13:03:00 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: [Caml-list] Ocaml crash Message-ID: <3BF3BD04.20579.183C8FEF@localhost> X-mailer: Pegasus Mail for Win32 (v3.12cDE) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have a class mirror and a type mirror in the same module. This compiles without emitting an error. But when I run the toplevel built with this module and type: let m1 = new mirror ...;; the toplevel crashes displaying an error dialoge with the message (WinNT VC++6 in German): Die Anweisung in "0x00447324" verweist auf Speicher "0x00000009". ... (I think in English this reads: The instruction "0x00447324" points to memery location "0x00000009". ...) Of course it's a bad idea to name a class and a type definition the same but I had expected the compiler to throw an error. Is this documented anywhere? Besides this I have a question concerning modules. Is it possible to spread the implementation of a module over several files and if how is it done? Thanks Rolf Wester ------------------------------------- Rolf Wester rolf.wester@ilt.fraunhofer.de ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr