What should happen here?

Elronnd elronnd at elronnd.net
Mon Sep 20 20:02:06 UTC 2021


On Monday, 20 September 2021 at 18:49:12 UTC, Steven 
Schveighoffer wrote:
> It's just class references that the compiler seems to not care 
> about ensuring stack references stay alive.
>
> Should it be this way?

Hmm.  No opinion on 'should', but you ought to be able to insert 
a volatileRead late in the function in order to ensure the object 
stays alive.


More information about the Digitalmars-d mailing list