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 PAA08214; Mon, 19 Aug 2002 15:42:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA08285 for caml-list@pauillac.inria.fr; Mon, 19 Aug 2002 15:42:16 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA02376 for ; Mon, 19 Aug 2002 12:14:45 +0200 (MET DST) Received: from mail.info.univ-angers.fr (nes.info.univ-angers.fr [193.49.146.122]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g7JAEiD01047 for ; Mon, 19 Aug 2002 12:14:45 +0200 (MET DST) Received: from orion.info-ua (orion.info-ua [172.20.41.6]) by mail.info.univ-angers.fr (Postfix) with ESMTP id 9B65E93F for ; Mon, 19 Aug 2002 12:14:41 +0200 (CEST) Received: from helios.info-ua (helios.info-ua [172.20.41.5]) by orion.info-ua (Postfix) with ESMTP id C932B175CE for ; Mon, 19 Aug 2002 12:14:41 +0200 (MEST) Received: by helios.info-ua (Postfix, from userid 759) id EC08C1421C; Mon, 19 Aug 2002 10:14:40 +0000 (MET) Received: from localhost (localhost [127.0.0.1]) by helios.info-ua (Postfix) with ESMTP id D3BCD1D82 for ; Mon, 19 Aug 2002 12:14:40 +0200 (MEST) Date: Mon, 19 Aug 2002 12:14:40 +0200 (MEST) From: Vincent Barichard X-X-Sender: barichar@helios.info-ua To: CAML-LIST Subject: [Caml-list] module managing question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have a question on the manage of modules files. I use the toplevel system to make some algorithms and then I compile them to get efficient executable file. Is it possible to have exactly the same files for the two stage. For example, in the ocaml toplevel, I load the two following files a.ml and b.ml with the #use command. In a file named a.ml, I have : module A =3D struct =09let f =3D function _ -> 0 end In a second file named b.ml, I have : module B =3D struct =09open A =09let g =3D f end Everything works well. But when I want to compile them, I have to put in comments the "(*module ? =3D struct*)" and the "(* end *)" to make it works. Is there another way to proceed ? Thanks Vincent Vincent Barichard M=E9taheuristiques et Optimisation Combinatoire Facult=E9 des Sciences d'Angers Tel : 02 41 73 52 06 ------------------- 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