Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Programming with modules
Date: Fri, 20 Aug 2004 13:09:24 +0100	[thread overview]
Message-ID: <20040820120924.GA6992@annexia.org> (raw)
In-Reply-To: <20040820215938.7c21af1b.ocaml-erikd@mega-nerd.com>

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


  reply	other threads:[~2004-08-20 12:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20 11:28 Erik de Castro Lopo
2004-08-20 11:45 ` Richard Jones
2004-08-20 11:59   ` Benjamin Geer
2004-08-20 11:59   ` Erik de Castro Lopo
2004-08-20 12:09     ` Richard Jones [this message]
2004-08-27 16:29     ` Richard Jones
2004-08-20 14:47 ` Brian Hurt
2004-08-20 16:56   ` brogoff
2004-08-21  1:28     ` skaller
2004-08-21  1:57       ` [Caml-list] Programming with classes Jean-Baptiste Rouquier
2004-08-21  2:44         ` skaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040820120924.GA6992@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox