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] module namespace
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-02 (08:51)
From: Alessandro Baretta <alex@b...>
Subject: Re: [Caml-list] module namespace
I think this is very interesting.

Yurii A. Rashkovskii wrote:
> I've developed small preprocessor module that provides kind of
> namespace support for the Objective Caml.
> It defines following constructs:
> * module ModuleName in [Namespace|Namespace.Namespace]

This method of defining namespaces would require some form 
of central authority allocating namespace "domains" to 
developers, so as to acertain that no two companies or users 
will use the same namespace for their projects. Since this 
would put unnecessary burden on INRIA and on the developers, 
I advocate, as I already mentioned, the XML solution: a 
namespace is an arbitrary string literal enclosed by double 
quotes. The convention would be for each company or 
developer to use URLs pertaining to domains officially 
belonging to them.

> it defines module type ModuleTypeName within namespace
> Example:
>  module type T = sig val test:unit end



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