From: "David A. Black" Date: 2005-10-14T08:37:25+09:00 Subject: Re: Challenging Project ... Need a deep guru to provide enlightenment. Hi -- On Fri, 14 Oct 2005, Jeff Wood wrote: > I think I've got a very challenging project on my hands but here's I'm > trying to create. > > I want a completely clean(transparent) proxy object. > > One where ALL methods simply return the result of the same call on the > proxied ( not the proxy ) object. > > I mean, if the user wants to add/override methods, that's fine, but by > default, EVERY call should be passed through. > > I hope that makes sense... > > So: > > a = String > b = Proxy.new( a ) > > # should be the same > a.class > b.class > > # should be the same > a.methods > b.methods > > I want it be completely transparent. > > Is that possible? Are you sure you're describing what you want correctly? The class of String is Class -- but don't you want b.class to report String? David -- David A. Black dblack@wobblini.net