>>
>> In AS3, the reference to bar in the zot function would be bound to
>> this.bar
>
> I don't follow.  There is no `this.bar` in the class where zot is defined.
>

Sorry, I said that backwards. When class foo is compiled, there is no
member called bar, so the reference is bound to the global variable.
Defining a member variable called bar in the subclass does not affect
that.

I don't know how convention will develop in other environments but, in
AS3, global variables are almost always declared in packages, and
strict mode is on by default. The result is that you would always get
a compiler error in these cases instead of an ambiguous reference.

Peter
_______________________________________________
Es4-discuss mailing list
Es4-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to