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 UAA06213; Tue, 27 Apr 2004 20:11:44 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 UAA06202 for ; Tue, 27 Apr 2004 20:11:42 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3RIBfjq015577 for ; Tue, 27 Apr 2004 20:11:41 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BIX3T-0001Dv-00; Tue, 27 Apr 2004 19:11:39 +0100 Date: Tue, 27 Apr 2004 19:11:39 +0100 To: Jean-Baptiste Rouquier Cc: "caml-list@inria.fr" Subject: Re: [Caml-list] module / directory tree OR #include for camp4 Message-ID: <20040427181139.GA4496@redhat.com> References: <408D0A43.50802@ens-lyon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <408D0A43.50802@ens-lyon.org> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 submodules:01 ocamlopt:01 type-safe:01 ltd:98 caml:01 caml:01 fragments:01 0200,:01 makefile:02 tree:02 tree:02 modules:02 module:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, Apr 26, 2004 at 03:10:27PM +0200, Jean-Baptiste Rouquier wrote: > So my question is: Is there a canonical way to have submodules with the > same name (in different modules) in separate files, allowing to generate > documentation and use ocamlopt ? It would be even better if the > directory tree would be reflected in the module tree. A pretty hideous solution would be to use a Makefile to concatenate source files together, eg: plot.ml: part1.frag part2.frag part3.frag cat $^ > $@ Then edit the individual fragments ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment Perl4Caml lets you use any Perl library in your type-safe Objective CAML programs. http://www.merjis.com/developers/perl4caml/ ------------------- 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