Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] module / directory tree OR #include for camp4
[ 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] module / directory tree OR #include for camp4
On Mon, Apr 26, 2004 at 03:10:27PM +0200, Jean-Baptiste Rouquier wrote:
> So my question is: Is there a canonical way to have submodules with the 
> same name (in different modules) in separate files, allowing to generate 
> documentation and use ocamlopt ? It would be even better if the 
> directory tree would be reflected in the module tree.

A pretty hideous solution would be to use a Makefile to concatenate
source files together, eg:

plot.ml: part1.frag part2.frag part3.frag
	cat $^ > $@

Then edit the individual fragments ...

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
Perl4Caml lets you use any Perl library in your type-safe Objective
CAML programs. http://www.merjis.com/developers/perl4caml/

-------------------
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