>From his padded room, Randal suggested:
> >>>>> "John" == John Siracusa <[EMAIL PROTECTED]> writes:
>
> John> I don't like $ME either, but my alternative is probably even more
> John> blasphemous: use $self.
>
> John> But wait, it gets worse: I'd even be happy with the bareword "self"
>
> I'll have an adjacent cell. I actually like that *better* than $self.
You can have your cake, but not force us to eat it too...
Like $AUTOLOAD, $ME would be dynamically scoped:
package LoonyBin;
sub self {$ME};
sub get_polite_age : method {
return (self->age >= 40) ? 39 : self->age;
}
One might even imagine a standard pragma that automatically creates
such things in any package with methods.
We seem to cope with $AUTOLOAD okay, without the need to:
sub autoload : lvalue {$AUTOLOAD}
all the time.
Damian
- Re: RFC 124 (v1) Sort order for any hash Jeremy Howard
- Re: RFC 124 (v1) Sort order for any hash Damian Conway
- Re: RFC 124 (v1) Sort order for any hash David L. Nicol
- RFC for $ME class variable (was Re: RFC 124 (v... Nathan Wiger
- Re: RFC for $ME class variable (was Re: RFC 1... Damian Conway
- Re: RFC for $ME class variable (was Re: RF... Randal L. Schwartz
- Re: RFC for $ME class variable (was Re... John Siracusa
- Re: RFC for $ME class variable (w... Randal L. Schwartz
- Re: RFC for $ME class variabl... Bryan C . Warnock
- Re: RFC for $ME class variabl... Graham Barr
- Re: RFC for $ME class variable (w... Damian Conway
- Re: RFC for $ME class variabl... John Siracusa
- Re: RFC for $ME class variabl... Nathan Wiger
- Re: RFC for $ME class variabl... Bart Lateur
- Re: RFC for $ME class variabl... Nathan Wiger
- Re: RFC for $ME class variable (was Re: RF... Piers Cawley
- Re: RFC for $ME class variable (was Re: RF... David L. Nicol
- RE: RFC 124 (v1) Sort order for any hash Brust, Corwin
- Re: RFC 124 (v1) Sort order for any hash as an exa... David L. Nicol
