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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-02-09 (11:22)
From: Alessandro Baretta <a.baretta@b...>
Subject: Re: [Caml-list] Namespace clash
Alain Frisch wrote:
> Alessandro Baretta wrote:
>> Probably, all that ocaml lacks to properly handle namespacing is a 
>> -open directive, telling the compiler to imply a "open Xxxx" at the 
>> beginning of all .ml and .mli files on the command line. Given this 
>> compiler flag, the build system could take care of everything.

I had not thought about this... Actually, it is not a bad idea, at least, in my 
build system. Ideally, the build system would have to have a way of mangling the 
library namespace by packaging up findlib-managed libraries in a single package. 
Then, it would have to isse the desired -open directives to an ad-hoc camlp4 
syntax extension. It's a bit of a hack, but it could work. I wonder if it is 
general enough a solution to become mainstream, though.



Ing. Alessandro Baretta

Studio Baretta

Consulenza Tecnologica e Ingegneria Industriale
Technological Consulting and Industrial Engineering

tel. +39 02 370 111 55
fax. +39 02 370 111 54