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 QAA07939; Mon, 19 Nov 2001 16:23:03 +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 QAA08004 for ; Mon, 19 Nov 2001 16:23:02 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fAJFN1b26696; Mon, 19 Nov 2001 16:23:01 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA07497; Mon, 19 Nov 2001 16:23:00 +0100 (MET) Date: Mon, 19 Nov 2001 16:23:00 +0100 From: Xavier Leroy To: Rolf Wester Cc: caml-list@inria.fr Subject: Re: [Caml-list] Ocaml crash Message-ID: <20011119162300.B7102@pauillac.inria.fr> References: <3BF3BD04.20579.183C8FEF@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3BF3BD04.20579.183C8FEF@localhost>; from rolf.wester@ilt.fhg.de on Thu, Nov 15, 2001 at 01:03:00PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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 This is a known bug (PR#478 in our bug database :-). It is fixed in the working sources, and also in 3.03 alpha. > 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? You can implement several modules A1, A2, ..., possibly each in its own file, then re-export the relevant parts in the "main" module A, e.g. A.ml: include A1 (* re-export everything from A1 *) include (A2 : sig ... end) (* selective re-export from A2 *) ... - Xavier Leroy ------------------- 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