On Thursday, July 11, 2002, at 02:25 PM, Joseph J. Strout wrote:
At 2:18 PM -0700 7/11/02, Brady Duga wrote:
Specifically, the Tickled object has an array of objects that it
treats as a stack - every second it tells the object at the end of the
array to do something
HOW? How does it do something every second, if the timer does not have
a reference to it? Are you running it in a thread that sits in a loop
and watches the Ticks value, or what?
Tickler isa Timer (I mentioned it in my first post, but neglected to
repeat that point). Tickler/Timer has a ref to Tickled. Tickled has a
ref back to Tickler/Timer. Tickled cuts ref back to Tickler/Timer.
Tickler/Timer dies. Death of Tickler/Timer severs only ref to Tickled.
Tickled dies.
If what Mars says is true about self and me, then this should be fine,
as there are at least 2 more refs to these objects until their methods
all exit.
--Brady
The La Jolla Underground
|