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 UAA11220; Mon, 3 Jun 2002 20:56:20 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA11215 for caml-list@pauillac.inria.fr; Mon, 3 Jun 2002 20:56:20 +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 NAA22527 for ; Mon, 3 Jun 2002 13:02:16 +0200 (MET DST) Received: from porsta.cs.Helsinki.FI (porsta.cs.Helsinki.FI [128.214.48.124]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g53B2FL28279 for ; Mon, 3 Jun 2002 13:02:16 +0200 (MET DST) Received: from alkokrunni.cs.Helsinki.FI (sslwrap@localhost [127.0.0.1]) by porsta.cs.Helsinki.FI (8.11.6/8.11.6) with ESMTP id g53B2EO08606 for ; Mon, 3 Jun 2002 14:02:15 +0300 Received: from localhost (lealanko@localhost) by alkokrunni.cs.Helsinki.FI (8.11.6/8.11.2) with SMTP id g53B2Ei20937 for ; Mon, 3 Jun 2002 14:02:15 +0300 X-Authentication-Warning: alkokrunni.cs.Helsinki.FI: lealanko owned process doing -bs Received: from la by la.iki.fi with local (Exim 3.33 #1 (Debian)) id 17EQp1-0000hI-00 for ; Sun, 02 Jun 2002 11:34:43 +0300 Date: Sun, 2 Jun 2002 11:34:43 +0300 From: Lauri Alanko To: caml-list@inria.fr Subject: Re: [Caml-list] What about polymorphic methods? Message-ID: <20020602083443.GB2532@la.iki.fi> References: <3CEF08ED.80407@baretta.com> <20020525125530P.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020525125530P.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.3.25i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, May 25, 2002 at 12:55:30PM +0900, Jacques Garrigue wrote: > With the CVS version, you would have to write > > method left_iter : 'b. ('a -> 'b) -> 'b list = fun f -> ... > method right_iter : 'b. ('a -> 'b) -> 'b list = fun f -> ... ^^^ Is this type parameter declaration really necessary? Since class type parameters are explicitly declared already, can't method-specific type parameters be recognized automatically? Lauri Alanko la@iki.fi ------------------- 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