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 TAA29568; Mon, 27 May 2002 19:05:47 +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 TAA29243 for ; Mon, 27 May 2002 19:05:32 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com (r-mi214-6a243.tin.it [62.211.4.243]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g4RH5QD05471 for ; Mon, 27 May 2002 19:05:31 +0200 (MET DST) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id C884A273B1 for ; Mon, 27 May 2002 21:10:13 +0200 (CEST) Message-ID: <3CF28495.20102@baretta.com> Date: Mon, 27 May 2002 21:10:13 +0200 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: Re: [Caml-list] What about polymorphic methods? References: <3CEF08ED.80407@baretta.com> <20020525125530P.garrigue@kurims.kyoto-u.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Jacques Garrigue wrote: > Indeed, iterators are one of the major reasons to have polymorphic > methods in ocaml (the other one being implicit subtyping of > arguments). They are already in CVS, and will be present in ocaml > 3.05. > > 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 -> ... Great! That's what I need! Two questions now: how soon will this be officially released? And, is the CVS version stable enough for production quality code? 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