From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 66688BCAB for ; Thu, 26 May 2005 14:38:47 +0200 (CEST) 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 j4QCckcG013223 for ; Thu, 26 May 2005 14:38:47 +0200 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 OAA12573 for ; Thu, 26 May 2005 14:38:46 +0200 (MET DST) 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 j4QCcklp013220 for ; Thu, 26 May 2005 14:38:46 +0200 Received: from [10.0.0.10] (alex.barettalocal.com [10.0.0.10]) by mail.barettadeit.com (Postfix) with ESMTP id AFC5C803754A; Thu, 26 May 2005 14:38:45 +0200 (CEST) Message-ID: <4295C343.2040702@barettadeit.com> Date: Thu, 26 May 2005 14:38:27 +0200 From: Alex Baretta User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Jones , Ocaml Subject: Re: [Caml-list] BCP relating to -pack? References: <42959F7A.7020908@barettadeit.com> <20050526121201.GA16312@furbychan.cocan.org> In-Reply-To: <20050526121201.GA16312@furbychan.cocan.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4295C356.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4295C356.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 -pack:01 pxp:01 namespaces:01 ocaml:01 -pack:01 ocamlc:01 baretta:01 delegated:98 wrote:01 modules:01 hierarchical:02 match:02 parameters:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: Richard Jones wrote: > A better way to create a hierarchical namespace seems to be to use > some character _other than_ '.' (dot) to separate the levels. > > For instance: > > Pxp_document > Net_httpclient (nearly) Given the current implementation of namespaces in Ocaml, I agree. For a new project, I'd adopt this convetion. Currently, I have to decide whether we have to change all module names to match a sensibile convention, and consequently all references to the modules within the code, or if we ought to package everything up with -pack. The second solution is only viable if it does not break the current code, which is currently not written with "open Library_name" directives. If this is not possible, we'll have to stick with cmas and change module names all over the place, which is highly undesirable. If the namespace management could be entirely delegated to the command line parameters of ocamlc, I'd be a happier man. Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project