Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
requests for improvement
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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 <> writes:

> Hi,
> 2008/1/20 ivan chollet <>:
>> -          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).

                   cat ${.ALLSRC} > ${.TARGET}

(For BSD Make)
Michaël LB