From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA06183; Fri, 13 Aug 2004 12:14:29 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA04741 for ; Fri, 13 Aug 2004 12:14:28 +0200 (MET DST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i7DAERRM004338 for ; Fri, 13 Aug 2004 12:14:27 +0200 Received: from ibm3.cicrp.jussieu.fr (ibm3.cicrp.jussieu.fr [134.157.15.3]) by shiva.jussieu.fr (8.12.11/jtpda-5.4) with ESMTP id i7DAE1Fx031796 ; Fri, 13 Aug 2004 12:14:01 +0200 (CEST) X-Ids: 164 Received: from ibm1.cicrp.jussieu.fr (ibm1.cicrp.jussieu.fr [134.157.15.1]) by ibm3.cicrp.jussieu.fr (8.8.8/jtpda/mob-V8) with ESMTP id MAA90036 ; Fri, 13 Aug 2004 12:12:22 +0200 Received: from localhost (fernande@localhost) by ibm1.cicrp.jussieu.fr (8.8.8/jtpda/mob-v8) with ESMTP id MAA667900 ; Fri, 13 Aug 2004 12:12:01 +0200 X-Authentication-Warning: ibm1.cicrp.jussieu.fr: fernande owned process doing -bs Date: Fri, 13 Aug 2004 12:12:00 +0200 (DST) From: Diego Olivier Fernandez Pons X-X-Sender: fernande@ibm1 To: caml-list@inria.fr cc: brogoff Subject: Re: [Caml-list] Managing a polymorphic environment In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Miltered: at concorde with ID 411C9483.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at shiva.jussieu.fr with ID 411C9469.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pons:01 pons:01 etu:99 caml-list:01 instanciated:01 fernandez:01 fernandez:01 int:01 polymorphic:01 polymorphic:01 olivier:02 olivier:02 string:03 string:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Bonjour, Diego Olivier Fernandez Pons wrote : > The problem is to make Env forget it is typed because the > polymorphic parameter 'a captures the first instanciated type (int > in my example) even if (==) is polymorphic. The first problem is that it doesn't work. (==) reduces to (=) for simple types let x = 5 let y = 5 let env = Env.add x "x" env let env = Env.add y "y" env # Env.get_string x env ;; - : string = "y" Diego Olivier ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners