Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 'foo.ml', one of which gets copied into the main directory at
build time. It should be possible to have foo_a.ml, foo_b.ml, and
foo_c.ml, 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;   
books@havenrock.com         When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners