English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Extending modules and signatures
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-04-20 (05:18)
From: Goswin von Brederlow <goswin-v-b@w...>
Subject: Re: [Caml-list] Extending modules and signatures
Jon Harrop <jon@ffconsultancy.com> writes:

> On Sunday 19 April 2009 22:36:12 Ashish Agarwal wrote:
>> Having the compiler introduce module type names automatically from mli
>> files would be very helpful, and I don't see any disadvantages.
> Some people contest the idea that files should automatically convey module 
> information at all (SML does not). Indeed, should directories convey 
> something as well?

I thought they did.

a.ml: module B = struct let foo = ... end


a/b.ml : let foo = ...

could actually be equivalent and both result in A.B.foo.