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 XAA18803; Wed, 3 Jul 2002 23:53:52 +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 XAA18472 for ; Wed, 3 Jul 2002 23:53:51 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from pasmtp.tele.dk (pasmtp.tele.dk [193.162.159.95]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g63Lro912714 for ; Wed, 3 Jul 2002 23:53:50 +0200 (MET DST) Received: from localhost.localdomain (cpe.atm0-0-0-120180.0x3ef207e9.boanxx1.customer.tele.dk [62.242.7.233]) by pasmtp.tele.dk (Postfix) with ESMTP id 168D8B618 for ; Wed, 3 Jul 2002 23:53:50 +0200 (CEST) Received: (from prw@localhost) by localhost.localdomain (8.11.1/8.11.1) id g63LtJa09462; Wed, 3 Jul 2002 23:55:19 +0200 Date: Wed, 3 Jul 2002 23:55:19 +0200 From: Peter Wood To: caml-list@inria.fr Subject: Re: [Caml-list] Re: generic programming Message-ID: <20020703215519.GA9429@localhost.localdomain> References: <200207030246.WAA28665@dewberry.cc.columbia.edu> <4.3.2.7.2.20020703102610.0248b280@mail.d6.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4.3.2.7.2.20020703102610.0248b280@mail.d6.com> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Jul 03, 2002 at 10:29:09AM -0700, Chris Hecker wrote: > > >> Is generic programming possible with O'Caml? > >Sure it is possible ! > > Is it, in the sense that Stepanov and those guys mean it? John Max Skaller > and I were talking about this a long time ago, and I thought he posted this > to the list but it turns out it was in email to me, but here goes anyway: > > "Sure. I have a 'problem' example: try to implement STL iterators > in Caml. I don't have the expertise in Caml: I think this requires > 'higher order functors'. Several people have attempted this, no one > has succeeded that I know of." > > Perhaps he's reading and can explain some of the problems. > > Caml polymorphism&functors and C++ templates seem to have different > properties, and I wonder what you can and can't write in each. > > Chris Hi, Here's an interesting (though old) article by Henry Baker, "Iterators: Signs of Weakness in Object-Oriented Languages". http://linux.rice.edu/~rahul/hbaker/Iterator.html Regards, Peter ------------------- 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