Browse thread
[Caml-list] module / directory tree OR #include for camp4
-
Jean-Baptiste Rouquier
-
Richard Jones
- David Brown
- Jean-Baptiste Rouquier
- Sylvain LE GALL
-
Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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:
>
>plot.ml: part1.frag part2.frag part3.frag
> cat $^ > $@
>
>Then edit the individual fragments ...
>
>
Yes. But this would imply that line.ml (or part1.frag) is
module Line = struct
...
end
which is against the file <-> module correspondence (compiling line.ml
would produce a module Line.Line).
I think I will have a small file plot.ml like
module Line : sig #include "plot/line.mli" end = struct #include
"plot/line.ml" 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!
Thanks,
--
Jean-Baptiste Rouquier
http://perso.ens-lyon.fr/jean-baptiste.rouquier
-------------------
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