On Sat, 19 Aug 2000, Randal L. Schwartz wrote: > I'll have an adjacent cell. I actually like that *better* than $self. > Let's not stop there though. Perhaps we need "self" and "super" and > "thisContext". Only half joking... this would solve a lot of the > hacking issues. self could be a "die" if we weren't called as a > method, and then we wouldn't need to have a separate "method" type. > Oooh. Getting better all the time! Or maybe just return undef, and > let the method call fail on the undef, or we could check it ahead: > > if (my $me = self) { > $me->do_this > } else { > $CGI::Q->do_this > } > > To steal from CGI.pm's problem. Or, if it threw an exception: > > try { > self->do_this > } error { > $CGI::Q->do_this > } > > or whatever the syntax is this week. Given the above examples, how many other things would break if $ME/self were implicit, and automagically pointed to the right object or package? The above would be reduced to do_this(); in both procedural and object code. -- Bryan C. Warnock ([EMAIL PROTECTED])
- Re: RFC 124 (v1) Sort order for any hash David L. Nicol
- Re: RFC 124 (v1) Sort order for any hash Damian Conway
- 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 12... Nathan Wiger
- Re: RFC for $ME class variable (was Re: R... Damian Conway
- Re: RFC for $ME class variable (was Re... Randal L. Schwartz
- Re: RFC for $ME class variable (w... John Siracusa
- Re: RFC for $ME class variabl... Randal L. Schwartz
- Re: RFC for $ME class var... Bryan C . Warnock
- Re: RFC for $ME class var... Graham Barr
- Re: RFC for $ME class variabl... Damian Conway
- Re: RFC for $ME class var... John Siracusa
- Re: RFC for $ME class var... Nathan Wiger
- Re: RFC for $ME class var... Bart Lateur
- Re: RFC for $ME class var... Nathan Wiger
- Re: RFC for $ME class variable (was Re... Piers Cawley
- Re: RFC for $ME class variable (was Re... 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... David L. Nicol