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: | Martin Jambon <martin_jambon@e...> |
| Subject: | Re: [Caml-list] Syntactic inclusion of a.ml in b.ml ? |
On Fri, 8 Apr 2005, Sébastien Hinderer wrote: > 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 ? You can maybe use camlmix: http://martin.jambon.free.fr/toolbox.html#ppocaml http://martin.jambon.free.fr/camlmix Martin -- Martin Jambon, PhD http://martin.jambon.free.fr