AUTOLOAD

chromatic chromatic at wgz.org
Wed Jan 17 13:36:29 GMT 2007


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...

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.

-- c



More information about the london.pm mailing list