From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 6EB33BBC1 for ; Thu, 1 May 2008 04:00:13 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQBADvBGEgRlBBImmdsb2JhbACRWAEBAQEBCAUIBxEDmxk X-IronPort-AV: E=Sophos;i="4.27,419,1204498800"; d="scan'208";a="25721798" Received: from smtpoutm.mac.com ([17.148.16.72]) by mail4-smtp-sop.national.inria.fr with ESMTP; 01 May 2008 03:59:59 +0200 Received: from asmtp012.mac.com (asmtp012-bge351000 [10.150.69.75]) by smtpoutm.mac.com (Xserve/smtpout009/MantshX 4.0) with ESMTP id m411xvDD011079 for ; Wed, 30 Apr 2008 18:59:57 -0700 (PDT) MIME-version: 1.0 Content-type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Received: from [192.168.8.107] ([24.218.151.219]) by asmtp012.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K0600FRM2VVKA10@asmtp012.mac.com> for caml-list@yquem.inria.fr; Wed, 30 Apr 2008 18:59:57 -0700 (PDT) Message-id: <1941EE12-0691-4FDF-A029-80CE55327C26@mac.com> From: Gordon Henriksen To: caml-list@yquem.inria.fr In-reply-to: <20080430133849.GG28774@stratocaster.home> Content-transfer-encoding: quoted-printable Subject: Re: [Caml-list] Invoking the standard library ? Date: Wed, 30 Apr 2008 21:59:53 -0400 References: <1209479205.11285.15.camel@Blefuscu> <20080429181958.GB18818@stratocaster.home> <20080430.090541.77051652.garrigue@math.nagoya-u.ac.jp> <481824E4.1020109@univ-savoie.fr> <20080430133849.GG28774@stratocaster.home> X-Mailer: Apple Mail (2.919.2) X-Spam: no; 0.00; 0200,:01 christophe:01 raffalli:01 ocaml:01 ocamlopt:01 wrote:01 wrote:01 caml-list:01 conflicts:01 modules:02 modules:02 string:02 string:02 module:03 module:03 On Apr 30, 2008, at 09:38, Eric Cooper wrote: > On Wed, Apr 30, 2008 at 09:51:00AM +0200, Christophe Raffalli wrote: >> A very simple solution (that I use for PML) would be to change ocaml >> so that a directory in the path is considered as a module whose >> fields are the modules and directory inside it ... This allows two >> files to have the same name and depending if you open or not the >> module/directory containing an extended string library, you can >> access by open String the original or the extended module. > > I like this approach -- very elegant. Note that ocamlopt uses the module name as an entry point and =20 including multiple modules with the same name will cause linkage =20 conflicts. =97 Gordon