[Cuis-dev] Animator class>>composedActionExample2 crashes the VM

ken.dickey at whidbey.com ken.dickey at whidbey.com
Wed Sep 27 15:44:55 PDT 2023


On 2023-09-27 09:28, Szabolcs Komáromi via Cuis-dev wrote:
..
> The composedActionExample2 method of Ken's Animator 
> (https://github.com/KenDickey/Cuis-Smalltalk-Animator) package crashes 
> the VM

Fixed now.

This was a subtle one.   The #action method returned a closed over 
action which was a reference into an instance variable.  When this was 
assigned to in the example, a circular/chained reference was created.  
See instance method #action for the solution.

Thanks!
-KenD

Definition of recursion:
   See "Definition of recursion"
;^)


More information about the Cuis-dev mailing list