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
[Caml-list] Do you like files as modules?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-10-07 (05:38)
From: Matt Gushee <mgushee@h...>
Subject: Re: [Caml-list] Do you like files as modules?
On Thu, Oct 07, 2004 at 01:12:46PM +1000, skaller wrote:
> In both Ocaml and Python, the module name is also
> coupled to the filename.

This doesn't bother me, but it would be nice if the compilers had an
option allowing you to associate differently-named interface and
implementation files. Currently, if you have an interface 'foo.mli',
with several possible implementations, you have to resort to kludges
like creating subdirectories a/, b/, and c/, each with a different
version of '', one of which gets copied into the main directory at
build time. It should be possible to have,, and, and arbitrarily select one as the implementation of Foo.

Matt Gushee                 When a nation follows the Way,
Haven Rock Press            Horses bear manure through
Englewood, Colorado, USA        its fields;         When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                            --Lao Tzu (Peter Merel, trans.)

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: