On Apr 8, 2007, at 11:22 AM, Frank Condello wrote: > ou can make a self-cleaning tree in RB code without weakrefs, though > you need to call the plugin API's Lock/Unlock functions - the > framework provides these if you know where to look ;) I use this > technique to travel a 3D scenegraph upwards from a leaf node and have > been very satisfied with the results.
What do you mean? BTW there is a way to do tree Structures without all of that... But it's messy and takes a lot of code to make work dynamically. Put the tree members in an array or dictionary and use array indexes or dictionary keys in the nodes as pointers to parent and child. While you still effectively have them, that eliminates circular references for reference counting memory management purposes - Karen _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
