Re: The order of objects returned from a guardian

2005-08-01 Thread Kevin Ryde
Marius Vollmer [EMAIL PROTECTED] writes: There is no guarantee about the order in which objects are returned from a guardian. If you want to impose an order on finalization actions, for example, you can do that by keeping objects alive in some global data structure until

Re: The order of objects returned from a guardian

2005-07-31 Thread Marius Vollmer
Neil Jerram [EMAIL PROTECTED] writes: If you do, you would need to take care of the ordering yourself, which is quite easy by keeping objects alive in a global data structure until they are no longer needed. Not sure what you mean by this, though. How would this generate an ordering? Say

Re: The order of objects returned from a guardian

2005-07-31 Thread Marius Vollmer
Marius Vollmer [EMAIL PROTECTED] writes: (I am a bit worried right now that the 'obvious' approach of putting FOO and BAR into a weak key hashtable with FOO as the key and BAR as the value does conflict a bit with my original goal of breaking up cycles from strong values to weak keys. With