On Fri, Oct 26, 2001 at 03:28:57PM -0700, Brent Dax wrote:
> What if we have an instance variable $foo and a global $foo, and we want
> to access the global?
Do you mean if we've hidden a lexical of the same name in the same
scope? I seem to recall something related to %MY that would let you
access outer scopes, but I don't remember the details. Perhaps I'm
thinking of the discussion regarding modifying the callers environment.
Wait for the OOP Apocalypse/Exegesis.
> Are we still gonna be able to pick what we call the current instance?
That's a good question. With the implicit-self of unary dot, I don't
see how we get at the object directly. Perhaps it will be something like
this:
method foo {
my $me is self;
$me.blah(); # same as .blah();
}
I don't know. Wait for the OOP Apocalypse/Exegesis :-)
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]