[Pharo-project] What is the difference between ActionSequence and WeakActionSequence
henrik.s.johansen at veloxit.no
Fri Jan 13 10:39:58 EST 2012
On Jan 13, 2012, at 4:33 23PM, Guillermo Polito wrote:
> In 1.3 they look the same, in 1.4 ActionSequence is not there any more...
> Is the second one replacing the first one? are there any differences for the user?
ActionSequence was not referenced by the base system any more, not sure why it was removed instead of deprecated.
And yes, there is a difference for a user, the WeakActionSequence holds actions weakly, while ActionSequence held them strongly.
(WeakActionSequence automatically removes the actions when there are no other references to the registrar, while ActionSequence did not, and you had to unregister manually before it would stop executing them)
More information about the Pharo-dev