On Wed, Feb 06, 2002 at 07:33:29AM -0800, Randal L. Schwartz wrote: > Tony> Now, it probably wouldn't be that hard to write such a thing, but I > Tony> thought I'd check first in case someone has already written something > Tony> which does all this, and more. Does such a thing exist? > See Class::Delegate (or something with Delegate in the name). You > create an object, then through the miracle of autoloading, all > designated method calls get sent to a specific instance object, which > would be your original object.
How does this sit with my request that, "I'd ideally like to be able to declare what things are in this interface within the class itself, rather than having to write a different class each time which just delegated."? Am I missing something in the interface of Class::Delegate (or Class::Delegation) that lets me do this? Tony
