[Pharo-project] What is the difference between ActionSequence and WeakActionSequence

Mariano Martinez Peck marianopeck at gmail.com
Fri Jan 13 10:48:33 EST 2012


On Fri, Jan 13, 2012 at 4:44 PM, Guillermo Polito <guillermopolito at gmail.com
> wrote:

> But they are both defined the same way!
>
> Array variableSubclass: #WeakActionSequence
>     instanceVariableNames: ''
>     classVariableNames: ''
>     poolDictionaries: ''
>     category: 'Kernel-Objects'
>
> The only reference to it's weakness it its name! :P
>
>
I also see

>>  asActionSequenceTrappingErrors

    ^WeakActionSequenceTrappingErrors withAll: self


;)


> On Fri, Jan 13, 2012 at 12:39 PM, Henrik Johansen <
> henrik.s.johansen at veloxit.no> wrote:
>
>>
>> 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?
>> >
>> > Thanks,
>> > Guille
>>
>>
>> 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)
>>
>> Cheers,
>> Henry
>>
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20120113/f2eaace8/attachment-0001.html>


More information about the Pharo-dev mailing list