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 NAA00600; Fri, 20 Aug 2004 13:59:47 +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 NAA01805 for ; Fri, 20 Aug 2004 13:59:46 +0200 (MET DST) Received: from smtp-2.syd.swiftdsl.com.au (smtp-2.syd.swiftdsl.com.au [218.214.224.98]) by nez-perce.inria.fr (8.12.10/8.12.10) with SMTP id i7KBxgmL007675 for ; Fri, 20 Aug 2004 13:59:44 +0200 Received: (qmail 1362 invoked from network); 20 Aug 2004 11:59:57 -0000 Received: from unknown (HELO smtp.syd.swiftdsl.com.au) (202.154.83.58) by smtp-2.syd.swiftdsl.com.au with SMTP; 20 Aug 2004 11:59:57 -0000 Received: (qmail 26980 invoked from network); 20 Aug 2004 11:59:42 -0000 Received: from unknown (HELO coltrane.mega-nerd.net) (218.214.64.136) by smtp.syd.swiftdsl.com.au with SMTP; 20 Aug 2004 11:59:42 -0000 Received: from coltrane (localhost [127.0.0.1]) by coltrane.mega-nerd.net (Postfix) with SMTP id 315E47AE1; Fri, 20 Aug 2004 21:59:38 +1000 (EST) Date: Fri, 20 Aug 2004 21:59:38 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Cc: Richard Jones Subject: Re: [Caml-list] Programming with modules Message-Id: <20040820215938.7c21af1b.ocaml-erikd@mega-nerd.com> In-Reply-To: <20040820114552.GA6634@annexia.org> References: <20040820212818.0f8f1b10.ocaml-erikd@mega-nerd.com> <20040820114552.GA6634@annexia.org> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4125E7AE.000 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 endline:01 ocamlc:01 -pp:01 millenium:01 int:01 lib:01 lib:01 logical:02 modules:02 nospam:97 string:03 wrote:03 argument:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 20 Aug 2004 12:45:52 +0100 Richard Jones wrote: > Preprocessing with /lib/cpp is possible: > > -------------------------------------------------- main.ml > #include "main-part1.ml" > #include "main-part2.ml" > > -------------------------------------------------- main-part1.ml > let v1 = 1 > > -------------------------------------------------- main-part2.ml > let v2 = v1 + 1;; > print_endline ("v2 = " ^ string_of_int v2);; > > > > $ ocamlc -pp /lib/cpp main.ml OK, I'm sure that will work for now, but I'm not sure if it scales. What happens when my the line count of the files hits 10,000 or 100,000 LOC? Is there a solution that fits my original problem but still allows separate compilation? Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "This is like creating laws against blasphemy and then complaining that unbelievers can't come up with any logical argument against the existence of God" -- www.infoanarchy.org on the Digital Millenium Copyright Act ------------------- 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