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

Mariano Martinez Peck marianopeck at gmail.com
Fri Jan 13 16:49:25 CET 2012


On Fri, Jan 13, 2012 at 4:48 PM, Mariano Martinez Peck <
marianopeck at gmail.com> wrote:

>
>
> 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
>
>
> ;)
>
>
But ActionSequence is the same jahahahha


>
>> 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
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20120113/2431301a/attachment.htm>


More information about the Pharo-project mailing list