From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 572A0BBBA for ; Thu, 9 Feb 2006 12:22:25 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k19BMOFU006697 for ; Thu, 9 Feb 2006 12:22:24 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA29309 for ; Thu, 9 Feb 2006 12:22:23 +0100 (MET) Received: from mail.barettadeit.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k19BMNeJ006694; Thu, 9 Feb 2006 12:22:23 +0100 Received: from [10.1.0.20] (unknown [10.1.0.20]) by mail.barettadeit.com (Postfix) with ESMTP id 3A108A49F2; Thu, 9 Feb 2006 12:23:52 +0100 (CET) Message-ID: <43EB23B1.8070801@barettadeit.com> Date: Thu, 09 Feb 2006 12:12:49 +0100 From: Alessandro Baretta User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alain Frisch , Ocaml , metaocaml-hackers-l@cs.rice.edu Subject: Re: [Caml-list] Namespace clash References: <43E9F1EE.1070502@barettadeit.com> <43EACE5C.4010804@inria.fr> In-Reply-To: <43EACE5C.4010804@inria.fr> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 43EB25F0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43EB25EF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 baretta:01 barettadeit:01 caml-list:01 frisch:01 ocaml:01 lacks:01 compiler:01 mli:01 compiler:01 mangling:01 ad-hoc:01 camlp:01 syntax:01 ingegneria:98 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 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. Alex -- ********************************************************************* Ing. Alessandro Baretta Studio Baretta http://studio.baretta.com/ Consulenza Tecnologica e Ingegneria Industriale Technological Consulting and Industrial Engineering tel. +39 02 370 111 55 fax. +39 02 370 111 54