AUTOLOAD

Andy Armstrong andy at hexten.net
Tue Jan 16 14:02:37 GMT 2007


On 16 Jan 2007, at 13:43, bah at longitude.com wrote:
>> Specifically, a child's AUTOLOAD will block a parent's AUTOLOAD, and
>> there is no convention for passing AUTOLOAD requests between  
>> AUTOLOADs
>> (equivalent of the ->SUPER::* or ->NEXT::* invocations for passing
>> ordinary method calls up the inheritance tree).
>
> That's not to say that it isn't possible.  Check XML::Generator's  
> "STACKED
> AUTOLOADs".

Of course it's possible. As already mentioned on this thread  
Class::Std implements a solution to the problem too. The point is  
that there's no *standard* way to percolate unhandled AUTOLOADs up  
the inheritance chain. If you allow for the possibility of multiple  
inheritance it's not entirely trivial to do either.

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list