in reply to Re: Re: can('SUPER::defaults')
in thread can('SUPER::defaults')
If you're trying to control where the method search begins and you're executing in the class itself, then you may use the SUPER pseudo class, which says to start looking in your base class's @ISA list without having to name it explicitly:
from PerlObj, emphasis added
Please note that the SUPER:: construct is meaningful only within the class.
My guess why, and its only a guess, is that Perl resolves SUPER at compile time. It doesnt care about the object at all as that happens at runtime. OTOH, that explanation gives me a funny feeling, @ISA is being set at runtime so I am confused.
Yves
--
You are not ready to use symrefs unless you already know why they are bad. -- tadmc (CLPM)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: can('SUPER::defaults')
by chromatic (Archbishop) on Oct 23, 2001 at 23:03 UTC | |
|
Re: Re: Re: Re: can('SUPER::defaults')
by jackdied (Monk) on Oct 24, 2001 at 02:55 UTC |