gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash ChangeLog libbase/string_table.cpp libbas...


From: strk
Subject: Re: [Gnash-commit] gnash ChangeLog libbase/string_table.cpp libbas...
Date: Wed, 24 Oct 2007 18:00:21 +0200

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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]