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 BAA07713; Wed, 7 Jul 2004 01:52:31 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA08182 for ; Wed, 7 Jul 2004 01:52:30 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from alex.baretta.com (host115-4.pool62211.interbusiness.it [62.211.4.115]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i66NqTEV011996 for ; Wed, 7 Jul 2004 01:52:29 +0200 Received: from baretta.com (localhost [127.0.0.1]) by alex.baretta.com (Postfix) with ESMTP id D23492D5ADB; Tue, 6 Jul 2004 19:53:24 -0400 (EDT) Message-ID: <40EB3B74.7050100@baretta.com> Date: Wed, 07 Jul 2004 01:53:24 +0200 From: Alex Baretta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: it, en-us, en MIME-Version: 1.0 To: William Lovas Cc: caml-list Subject: Re: [Caml-list] Polymorphic method problem References: <40EAEE20.2010805@t-online.de> <40EB1BDC.90905@baretta.com> <40EB20E4.7030109@t-online.de> <20040706231636.GA24283@force.stwing.upenn.edu> In-Reply-To: <20040706231636.GA24283@force.stwing.upenn.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40EB3B3D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; baretta:01 baretta:01 caml-list:01 lovas:01 2004:99 ddr's:01 ledit:01 disadvantage:01 buffer:01 alex:01 alex:01 0200,:01 polymorphic:01 syntax:02 unit:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk William Lovas wrote: > On Wed, Jul 07, 2004 at 12:00:04AM +0200, Christian Szegedy wrote: > >>Dear Alex! >> >>I tried to run your code, but it has obvious syntax errors. Indeed! DdR's ledit is a very nice tool to quickly type code into the interpreter, but it has the obvious disadvantage of not allowing easy copying out of the line buffer. Sorry for the mistake, and thanks to William for the correction. > > I suspect a copy/paste error. Here's the corrected code: > > class a = > object (self) > method f : 'a.(( as 'a) -> unit) = > fun x -> x # f > method g = self > end > Alex ------------------- 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