From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA17386 for caml-red; Mon, 11 Dec 2000 16:08:10 +0100 (MET) 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 KAA05580 for ; Fri, 8 Dec 2000 10:40:44 +0100 (MET) Received: from indigo.recherche.enac.fr (indigo.recherche.enac.fr [195.220.158.66]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id eB89egf15117 for ; Fri, 8 Dec 2000 10:40:43 +0100 (MET) Received: from beige.recherche.enac.fr (root@beige.recherche.enac.fr [10.31.1.89] (may be forged)) by indigo.recherche.enac.fr (8.8.6 (PHNE_14041)/8.6.11) with ESMTP id KAA21049; Fri, 8 Dec 2000 10:40:42 +0100 (MET) Received: from recherche.enac.fr (barnier@localhost [127.0.0.1]) by beige.recherche.enac.fr (8.9.3/8.6.11) with ESMTP id KAA04169; Fri, 8 Dec 2000 10:40:41 +0100 X-Authentication-Warning: beige.recherche.enac.fr: Host barnier@localhost [127.0.0.1] claimed to be recherche.enac.fr Message-ID: <3A30AC99.8BEE864F@recherche.enac.fr> Date: Fri, 08 Dec 2000 10:40:41 +0100 From: Nicolas barnier X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.5 i686) X-Accept-Language: en MIME-Version: 1.0 To: Sven LUTHER CC: caml-list@inria.fr Subject: Re: Same label in different types, how do people solve this? References: <20001208102229N.garrigue@kurims.kyoto-u.ac.jp> <20001208103125.A556@lambda.u-strasbg.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: weis@pauillac.inria.fr Sven LUTHER wrote: > > > The last solution might be nicer if we had a > > let open Module in > > construct (would require 10 lines in the compiler) > > Is this not already possible ? i read about something similar in the docs > somewhere ... I'm afraid not. But you can define local modules as a language extension: 7.6 Local modules The expression let module module-name = module-expr in expr locally binds the module expression module-expr to the identifier module-name during the evaluation of the expression expr. It then returns the value of expr. -- Nicolas