What should happen here?

Walter Bright newshound2 at digitalmars.com
Sun Sep 26 02:15:07 UTC 2021


On 9/25/2021 4:22 PM, jfondren wrote:
> Although I'd still like an efficient GC.keepAlive. My worry is the optimizer 
> removing some measure I'm taking specifically to keep a reference alive.

Use GC.addRoot() to keep a reference alive. That's what it's for.


More information about the Digitalmars-d mailing list