On Thu, Oct 25, 2007 at 12:26:39AM +0900, Chad Musick wrote:
> What is the result of the following change to the code?
> 
> mGetter = function() {
>       check(this == _root.A);
> };
> 
> ...
> 
> d:Number = A.m
> 
> 
> -- Is the property in B completely masked, or only for Setter?

My experience is that the masking is only for setting variables.
Not specific to Setter of a getter-setter, in my case the problem
was in a 'with' context:

get=function() { return 2; };
set=function() { trace(2); };
C = {};
B = {}; B.__proto__ = C;
A = {}; A.__proto__ = B;
A.__proto__.m = 1;
A.__proto__.__proto__.addProperty("m", get, set);
with (A)
{
        trace(m); // expect 1
        m=4; // expect set call (traces 2)
        trace(m); // expect 1
}

--strk;


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to