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 BAA05074; Wed, 7 Jul 2004 01:16:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 BAA05802 for ; Wed, 7 Jul 2004 01:16:41 +0200 (MET DST) Received: from nexus.stwing.upenn.edu (NEXUS.STWING.UPENN.EDU [165.123.132.61]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i66NGdSH015420 for ; Wed, 7 Jul 2004 01:16:40 +0200 Received: from force.stwing.upenn.edu (force.stwing.upenn.edu [165.123.132.65]) by nexus.stwing.upenn.edu (8.12.10/8.12.9) with ESMTP id i66NGcfn004399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 6 Jul 2004 19:16:39 -0400 (EDT) Received: from force.stwing.upenn.edu (localhost [127.0.0.1]) by force.stwing.upenn.edu (8.12.10/8.12.9) with ESMTP id i66NGbhs024524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 6 Jul 2004 19:16:38 -0400 (EDT) Received: (from wlovas@localhost) by force.stwing.upenn.edu (8.12.10/8.12.9/Submit) id i66NGbtH024523 for caml-list@inria.fr; Tue, 6 Jul 2004 19:16:37 -0400 (EDT) Date: Tue, 6 Jul 2004 19:16:37 -0400 From: William Lovas To: caml-list Subject: Re: [Caml-list] Polymorphic method problem Message-ID: <20040706231636.GA24283@force.stwing.upenn.edu> Mail-Followup-To: caml-list References: <40EAEE20.2010805@t-online.de> <40EB1BDC.90905@baretta.com> <40EB20E4.7030109@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40EB20E4.7030109@t-online.de> User-Agent: Mutt/1.5.4i X-Miltered: at concorde with ID 40EB32D7.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; lovas:01 wlovas:01 stwing:01 caml-list:01 2004:99 alex:01 0200,:01 polymorphic:01 syntax:02 unit:03 unit:03 wrote:03 object:03 suspect:05 william:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. 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 Hope this helps. cheers, William ------------------- 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