* david nicol <[EMAIL PROTECTED]> [2004-01-21 13:09]:
> I think its that as soon as you have AUTOLOAD defined, you
> can't inherit past that point, at least by the ISA mechanism:
> the AUTOLOAD function needs to know how to punt.

You think wrong.

    $ perl -l
    package Foo;
    sub bar { print "oy vey" };
    
    package Baz;
    our @ISA = qw(Foo);
    sub AUTOLOAD {};
  
    package main;
    Baz->bar;
  
    ^D
    oy vey

Cf. perldoc perlobj:

    If neither the current class, its named base classes, nor the
    UNIVERSAL class contains the requested method, these three
    places are searched all over again, this time looking for a
    method named AUTOLOAD().

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."

Reply via email to