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: Erik de Castro Lopo <ocaml-erikd@m...>
Subject: Re: [Caml-list] Programming with modules
On Fri, 20 Aug 2004 12:45:52 +0100
Richard Jones <rich@annexia.org> 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