AUTOLOAD

Dirk Koopman djk at tobit.co.uk
Wed Jan 17 14:05:52 GMT 2007


chromatic wrote:
> On Wednesday 17 January 2007 04:45, Adrian Howard wrote:
> 
>> As I understand it chromatic is saying that any responsible author of  
>> code using AUTOLOAD should also include an appropriate can() method  
>> with appropriate logic to give the correct results for that class.
>>
>> So it can be reliable if the author of the AUTOLOAD code is...
> 

And just to bang it home, they (the authors) are not and so it isn't.

And that was what I was trying to get across, inadequately as it turns 
out. Mea Culpa.

> That's it.
> 
> Note also that:
> 
> 1) can() returns a subroutine reference.  Don't break that.
> 
> 2) can() is a method.  Methods aren't functions.  If you call a method as a 
> function, you've introduced unreliability into everyone's code again, and of 
> course things will break.

Thank you.

Dirk



More information about the london.pm mailing list