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] CTAN/CPAN for Caml (COCAN ...?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-07-21 (07:29)
From: Christian Lindig <lindig@e...>
Subject: Re: [Caml-list] GODI (was: CTAN/CPAN for Caml (COCAN ...?))
On Sun, Jul 20, 2003 at 11:55:49AM +0200, Gerd Stolpmann wrote:
> I have an alternative, the "relational solution". 
> module M = sig
>   attributes
>     author = "Gerd Stolpmann",
>     organization = "",
>     version = "42.5"
>   ... further signature ...
> end
> You can now disambiguate module names by these attributes, e.g.
> open M[author="Gerd Stolpmann"]
> open M[version>="42.0"]

This is a fresh idea. But I get the impression that the essence of it is
to decouple the name of a module from the name of the file that contains
it.  Somebody suggested already an -alias directive for similar

We have to decide whether we want this decoupling to happen at the level
of the language (i.e. new syntax), or only the level of its
implementation (i.e. new compiler flags). Right now, the mapping of
module names to files is a matter of the compiler and mostly invisible
at the language level.  

-- Christian

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