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 XAA18335; Tue, 27 Apr 2004 23:52:53 +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 XAA18324 for ; Tue, 27 Apr 2004 23:52:52 +0200 (MET DST) Received: from oceanite.ens-lyon.fr (oceanite.ens-lyon.fr [140.77.1.22]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3RLqpjq005613 for ; Tue, 27 Apr 2004 23:52:51 +0200 Received: from localhost (oceanite.ens-lyon.fr [127.0.0.1]) by oceanite.ens-lyon.fr (Postfix) with ESMTP id 9DECA32040E for ; Tue, 27 Apr 2004 23:52:37 +0200 (CEST) Received: from oceanite.ens-lyon.fr ([127.0.0.1]) by localhost (oceanite [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05364-10 for ; Tue, 27 Apr 2004 23:52:37 +0200 (CEST) Received: from ens-lyon.org (unknown [140.77.128.163]) by oceanite.ens-lyon.fr (Postfix) with ESMTP id 7DC25320405 for ; Tue, 27 Apr 2004 23:52:37 +0200 (CEST) Message-ID: <408ED666.6030602@ens-lyon.org> Date: Tue, 27 Apr 2004 23:53:42 +0200 From: Jean-Baptiste Rouquier User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en MIME-Version: 1.0 To: "caml-list@inria.fr" Subject: Re: [Caml-list] module / directory tree OR #include for camp4 References: <408D0A43.50802@ens-lyon.org> <20040427181139.GA4496@redhat.com> In-Reply-To: <20040427181139.GA4496@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ens-lyon.fr 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; ens-lyon:01 caml-list:01 struct:01 mli:01 struct:01 -pack:01 ens-lyon:01 sig:01 fragments:01 preprocessor:02 makefile:02 imply:02 tree:02 tree:02 module:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >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 ... > > Yes. But this would imply that line.ml (or part1.frag) is module Line = struct ... end which is against the file <-> module correspondence (compiling line.ml would produce a module Line.Line). I think I will have a small file plot.ml like module Line : sig #include "plot/line.mli" end = struct #include "plot/line.ml" end module Bar ... with a small preprocessor providing an #include directive. So I will keep the plot/* files compilable with -pack. Hoping better module/file tree will be provided in future releases! Thanks, -- Jean-Baptiste Rouquier http://perso.ens-lyon.fr/jean-baptiste.rouquier ------------------- 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