Btw, a relatively isolated place in the code to deploy and test
weak references would be "active" and "topmost" mouse entities
in the mouse_button_state class.
That class stores the character currently under the mouse,
which is looked for on mouse move.
If you do not move your mouse, but the character disappears,
we want that pointer to become NULL.

--strk;

On Fri, Jun 15, 2007 at 10:18:17PM +0200, strk wrote:
> On Fri, Jun 15, 2007 at 01:21:20PM -0600, Eric Hughes wrote:
> > At 12:24 PM 6/15/2007, strk wrote:
> > >Exactly. Note that Function.prototype.constructor == Function
> ...
> > For strk:  Since this case is so common, is it possible and feasible to 
> > make the constructor reference to the function a weak reference, as an 
> > optimization?  If so, might this not be a good, relatively isolated place 
> > in the code to deploy and test weak references?
> 
> User can actually change Function.prototype.constructor to point to
> something else, and removal of that something else should not really
> release it.
> 
> var o = new Object;
> o.hello = function() { trace("hello"); }
> Function.prototype.constructor = o;
> delete o;
> Function.prototype.constructor.helo(); // expect a trace
> 
> --strk;

-- 

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 



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

Reply via email to