Browse thread
Syntactic inclusion of a.ml in b.ml ?
[
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: | Sébastien Hinderer <Sebastien.Hinderer@e...> |
| Subject: | Syntactic inclusion of a.ml in b.ml ? |
Dear all, (How) is it possible to include syntactically a file a.ml in a file b.ml ? One method that seems to w)rk is to rename b.ml to b.ml.c, and then have in b.ml.c a line saying #include "a.ml" And with this, gcc -E b.ml.c > b.ml produces a file that ocamlc can apparently handle. But is this considered a good solution, or is some better solution available ? Many thanks in advance, Sébastien.