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 87F3CBB91 for ; Wed, 26 Jan 2005 11:58:49 +0100 (CET) Received: from ext.lri.fr (ext.lri.fr [129.175.15.4]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j0QAwnUA017106 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 26 Jan 2005 11:58:49 +0100 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 1F0BC19E7A3; Wed, 26 Jan 2005 11:58:49 +0100 (CET) Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22215-01; Wed, 26 Jan 2005 11:58:49 +0100 (CET) Received: from smtp.lri.fr (serveur3-5 [129.175.3.5]) by ext.lri.fr (Postfix) with ESMTP id 0B6D119E6F3; Wed, 26 Jan 2005 11:58:49 +0100 (CET) Received: from pc8-102 (pc8-102 [129.175.8.102]) by smtp.lri.fr (Postfix) with ESMTP id 09169CED9A; Wed, 26 Jan 2005 11:58:49 +0100 (CET) Received: from pc8-102 ([127.0.0.1] helo=localhost) by pc8-102 with esmtp (Exim 3.36 #1 (Debian)) id 1Ctksp-0000Hf-00; Wed, 26 Jan 2005 11:58:47 +0100 Date: Wed, 26 Jan 2005 11:58:47 +0100 (CET) From: Julien Signoles X-X-Sender: signoles@pc8-102 To: Oliver Bandel Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] local Open In-Reply-To: <20050125132740.GA321@first.in-berlin.de> Message-ID: References: <20050125132740.GA321@first.in-berlin.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at nez-perce with ID 41F777E9.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; signoles:01 signoles:01 lri:01 caml-list:01 syntax:01 frisch:01 frisch:01 struct:01 struct:01 lri:01 ...:98 eleves:01 modules:01 ens:02 alain:02 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.0 X-Spam-Level: Hello, > There are local modules... but not local Open's?! > > Any idea about that? openin is probably your friend. It is a camlp4 syntax extension by Alain Frisch allowing local open's and struct's. The file is available at: http://www.eleves.ens.fr/home/frisch/soft.html#openin exemple: module M = struct let x = 0 end let y = open M in x top --> let y = let module OPENIN_1 = struct open M let res = x in OPENIN_1.res Hope this helps, Julien Signoles -- mailto:Julien.Signoles@lri.fr ; http://www.lri.fr/~signoles "In theory, practice and theory are the same, but in practice they are different" (Larry McVoy)