It just occurred to me that we could simulate weak references to  
solve the issue with cross-node delegates not getting automatically  
collected.

We simulate weak references by having a node table.  Every node that  
gets created gets a unique id and enters itself in the node table.   
When you make a delegate, you don't store the node, just the node  
id.  To invoke a delegate, you look up the node in the node table.   
When a node is deleted, is simply removes itself from the node  
table.  Delegates that don't find their node in the node table should  
unregister themselves...

Thoughts? 
  
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to