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 OAA02889; Fri, 20 Aug 2004 14:09:26 +0200 (MET DST) 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 OAA04110 for ; Fri, 20 Aug 2004 14:09:25 +0200 (MET DST) Received: from annexia.force9.co.uk (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i7KC9ORM021105 for ; Fri, 20 Aug 2004 14:09:25 +0200 Received: from rich by annexia.force9.co.uk with local (Exim 3.36 #1 (Debian)) id 1By8Cy-0001qu-00 for ; Fri, 20 Aug 2004 13:09:24 +0100 Date: Fri, 20 Aug 2004 13:09:24 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Programming with modules Message-ID: <20040820120924.GA6992@annexia.org> References: <20040820212818.0f8f1b10.ocaml-erikd@mega-nerd.com> <20040820114552.GA6634@annexia.org> <20040820215938.7c21af1b.ocaml-erikd@mega-nerd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040820215938.7c21af1b.ocaml-erikd@mega-nerd.com> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde with ID 4125E9F4.001 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 submodule:01 polluted:01 type-safe:01 ltd:98 caml:01 caml:01 compile:02 modules:02 modules:02 module:03 module:03 wrote:03 compilation:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Aug 20, 2004 at 09:59:38PM +1000, Erik de Castro Lopo wrote: > 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? Then it'll compile very slowly! > Is there a solution that fits my original problem but still > allows separate compilation? As Benjamin suggested, move the maintype into a separate module and make other modules which depend on this. Then bring all the submodule definitions together with a single Main. You'll end up with a polluted module namespace this way of course. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MOD_CAML lets you run type-safe Objective CAML programs inside the Apache webserver. http://www.merjis.com/developers/mod_caml/ ------------------- 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