Program crash: GC destroys an object unexpectedly

Tejas notrealemail at gmail.com
Tue Sep 14 05:49:58 UTC 2021


On Monday, 13 September 2021 at 18:42:47 UTC, Steven 
Schveighoffer wrote:
> On 9/13/21 1:54 PM, eugene wrote:
>> [...]
>
> The GC only scans things that it knows about.
>
> Inside your EventQueue you have this code:
>
> [...]

Umm is it okay that he declared variables `init` and `idle` of 
type `Stage` inside the constructor? Maybe that has something to 
do with this? Also, calling a variable `init` could be 
problematic since the compiler assigns a property of the same 
name to every single type?


More information about the Digitalmars-d-learn mailing list