Re: AUTLOAD and $_
by Chromatic other posts by this author
Jun 20 2005 4:00PM messages near this date
Re: AUTLOAD and $_
|
Re: AUTLOAD and $_
On Mon, 2005-06-20 at 16:37 -0600, Luke Palmer wrote:
> On 6/20/05, chromatic <chromatic@[...].org> wrote:
> > Who says AUTOLOAD will always either call a loaded sub or fail?
> Uh, what else can it do? It doesn't have to load a sub to return a
> code reference.
I think:
class NullObject
{
sub AUTOLOAD {}
}
is better than:
class NullObject
{
sub AUTOLOAD { return sub {} }
}
Or have I misunderstood the proposal and the purpose of AUTOLOAD?
-- c
Thread:
Sam Vilain
Juerd
Sam Vilain
Maxim Sloyko
Juerd
Adam Kennedy
Juerd
Luke Palmer
Chromatic
Juerd
Chromatic
Juerd
Luke Palmer
John Macdonald
Chromatic
Juerd
Rod Adams
Larry Wall
Rod Adams
Chromatic
Juerd
Sam Vilain
Sam Vilain
Juerd
|