Browse thread
Nesting Modules
[
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: | Robert Roessler <roessler@r...> |
| Subject: | Re: [Caml-list] Nesting Modules |
Tom Hawkins wrote: > Is it possible to nest modules defined in separate files? > > For example, assume I have... > > top.ml > top.mli > bottom.ml > bottom.mli > > Can I instruct the compiler to nest Bottom somewhere in Top, to obtain > clean, hierarchical names (eg: Top.Bottom.some_function)? Of course I > can inline bottom.ml in top.ml, but then the file become rather large. It seems like the "include" construct might be of help... Robert Roessler roessler@rftp.com http://www.rftp.com