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 PAA13667; Wed, 31 Mar 2004 15:16:23 +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 PAA13680 for ; Wed, 31 Mar 2004 15:16:21 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i2VDGIYM019817 for ; Wed, 31 Mar 2004 15:16:20 +0200 Received: from [192.168.1.200] (ppp113-158.lns1.syd3.internode.on.net [150.101.113.158]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i2VDGEwn034674; Wed, 31 Mar 2004 22:46:16 +0930 (CST) Subject: Re: [Caml-list] Delegation From: skaller Reply-To: skaller@users.sourceforge.net To: Issac Trotts Cc: skaller , caml-list In-Reply-To: <20040331035757.GA24644@mev> References: <1080724695.13269.156.camel@pelican.wigram> <20040331035757.GA24644@mev> Content-Type: text/plain Message-Id: <1080738971.13269.195.camel@pelican> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 31 Mar 2004 23:16:14 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 issac:01 trotts:01 oooo:99 9660:01 glebe:01 ocaml:01 caml:01 nsw:01 snail:02 checkout:02 objects:02 2037:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 2004-03-31 at 13:57, Issac Trotts wrote: > > Hmmm.. can I write: > > > > (fun o -> object method f: init = o#g end)#f > > > > given o has a method g of suitable type but wrong name? > > In the CVS version of OCaml, you can make objects of anonymous > class. Have a look at > > http://caml.inria.fr/archives/200402/msg00164.html Oooo... thank you for that link: looks perfect! -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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