Browse thread
requests for improvement
-
ivan chollet
- Oliver Bandel
-
ketti
- michael.le_barbier@l...
- 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: | michael.le_barbier@l... |
| Subject: | Re: [Caml-list] requests for improvement |
ketti <kattlachan@gmail.com> writes:
> Hi,
>
> 2008/1/20 ivan chollet <ivan.chollet@laposte.net>:
>> - Any plans about giving the possibility to spread the definition
>> across more than one source file. Sometimes modules are more than 300 lines,
>> so I would like to be able to split it over two or more files. Currently
>> there is a one-to-one relationship between files and modules. As far as I
>> know, OCaml is the only language to have such a particular constraint.
>
> I think this is a non issue.
> Just split it in several modules and use 'include' to bring it all
> together. Is that any different from what you want?
If you insist on splitting source code, recombination is
straightforwardly done thanks to make(1).
Example:
module.ml: module.1.ml module.2.ml
cat ${.ALLSRC} > ${.TARGET}
(For BSD Make)
--
Michaël LB