RE: [sv-ec]E-mail Vote: Closes 12am PST December 15 2007

From: Mark Hartoog <Mark.Hartoog_at_.....>
Date: Fri Dec 14 2007 - 14:51:39 PST
> -----Original Message-----
> From: Gordon Vreugdenhil [mailto:gordonv@model.com] 
> 
> I don't disagree with "this.x" resolving into the callee's 
> context; what I do object to is that you say:
>      Names qualified by this (i.e., this.a) shall bind to the 
> randomize()...with object class.
>                                             ^^^^^^^^^^^^^
> 
> That means that it is an error if "this.x" isn't found and 
> could be found in the caller's context.  This is completely 
> different from the way in which "x" is resolved.
> 

But this is consistent with the no back tracking rule for variables 
in dotted names. Once the first name matches a variable, we never
back track and keep searching for another match for the whole dotted
name.

Are you arguing that "this" should be treated differently than a normal
variable in dotted names? We should continue searching other
scopes for a different "this" that could resolve the whole name?

I don't feel strongly one way or the other, but I just think what 
is in Arturo's proposal is more consistent with the no back tracking
rule for variables in dotted names. If you want to access the class
method 'this' you can use "local::this.x" which should be the same as
"local::x" unless you also have a 'x' variable in the method.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Dec 15 04:30:00 2007

This archive was generated by hypermail 2.1.8 : Sat Dec 15 2007 - 04:30:25 PST