Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2004-08-20 (12:09)
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.


Richard Jones.
Merjis Ltd. - improving website return on investment
MOD_CAML lets you run type-safe Objective CAML programs inside the Apache

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: