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] 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: Jean-Baptiste Rouquier <jean-baptiste.rouquier@e...>
Subject: Re: [Caml-list] module / directory tree OR #include for camp4

>A pretty hideous solution would be to use a Makefile to concatenate
>source files together, eg:
> part1.frag part2.frag part3.frag
>	cat $^ > $@
>Then edit the individual fragments ...
Yes. But this would imply that (or part1.frag) is
    module Line = struct
which is against the file <-> module correspondence (compiling 
would produce a module Line.Line).

I think I will have a small file like
    module Line : sig #include "plot/line.mli" end = struct #include 
"plot/" end
    module Bar ...
with a small preprocessor providing an #include directive. So I will 
keep the plot/*  files compilable with -pack.
Hoping better module/file tree will be provided in future releases!

Jean-Baptiste Rouquier

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