Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Programming with modules
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Programming with modules
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