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 MAA02442; Wed, 31 Mar 2004 12:44:24 +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 MAA03594 for ; Wed, 31 Mar 2004 12:44:23 +0200 (MET DST) Received: from host1.stonesfair.com (host1.stonesfair.com [208.184.191.145]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i2VAiLYM030397 for ; Wed, 31 Mar 2004 12:44:22 +0200 Received: from mev (63-217-154-71.greystoneapts.com [63.217.154.71]) by host1.stonesfair.com (8.12.8/8.12.8) with ESMTP id i2VASYdP016374; Wed, 31 Mar 2004 02:28:34 -0800 Received: from ijtrotts by mev with local (Exim 3.35 #1 (Debian)) id 1B8WrV-0006Ql-00; Tue, 30 Mar 2004 19:57:57 -0800 Date: Tue, 30 Mar 2004 19:57:57 -0800 To: skaller Cc: caml-list@inria.fr Subject: Re: [Caml-list] Delegation Message-ID: <20040331035757.GA24644@mev> References: <1080724695.13269.156.camel@pelican.wigram> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1080724695.13269.156.camel@pelican.wigram> User-Agent: Mutt/1.3.28i From: Issac Trotts 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 issac:01 trotts:01 ijtrotts:01 issac:01 trotts:01 ocaml:01 caml:01 ucdavis:02 objects:02 object:03 hmmm:05 cvs:05 init:05 type:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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 -- Issac Trotts ------------------- 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