caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Syntactic inclusion of a.ml in b.ml ?
@ 2005-04-08 17:41 Sébastien Hinderer
  2005-04-09 10:35 ` [Caml-list] " Richard Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Sébastien Hinderer @ 2005-04-08 17:41 UTC (permalink / raw)
  To: caml-list

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.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-04-10 16:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 17:41 Syntactic inclusion of a.ml in b.ml ? Sébastien Hinderer
2005-04-09 10:35 ` [Caml-list] " Richard Jones
2005-04-09 13:20   ` Sébastien Hinderer
2005-04-09 14:45     ` [Caml-list] " Radu Grigore
2005-04-09 15:49       ` Sébastien Hinderer
2005-04-09 21:15         ` [Caml-list] " Radu Grigore
2005-04-09 17:51   ` [Caml-list] " Robert Roessler
2005-04-09 21:27     ` William D.Neumann
2005-04-10 16:53     ` Richard Jones
2005-04-09 11:55 ` Olivier Andrieu
2005-04-09 12:54 ` sejourne_kevin
2005-04-09 21:16 ` Martin Jambon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).