On Thu, Aug 10, 2000 at 04:47:33PM -0000, Perl6 RFC Librarian wrote:
> cope with a method call, it should return undef. Perl would then walk
> the OO hierarchy and find the next AUTOLOAD to call, eventually failing
> with an error if no AUTOLOAD method is found which will accept the
> call.

Why not have the return value of AUTOLOAD decide if the search for
AUTOLOAD should continue ? ie if the result is not a coderef but
is a `true' value then continue. If it is a `false' value the with
method not found.

perl should not follow ISA looking for AUTOLOAD if the sub being called
was called as a sub and not a method.

Graham.

Reply via email to