Program crash: GC destroys an object unexpectedly

eugene dee0xeed at gmail.com
Tue Sep 14 09:29:12 UTC 2021


On Tuesday, 14 September 2021 at 05:49:58 UTC, Tejas wrote:
> Umm is it okay that he declared variables `init` and `idle` of 
> type `Stage` inside the constructor?

States of a machine are in associative array.
All other machines create their states in constructor,
local variables are for using addReflex() method.

But this stopper machine is 'special' for GC somehow.



More information about the Digitalmars-d-learn mailing list