On 1/25/21 8:14 AM, vitamin wrote: > If created on the default way mean allocated with new (=> GC)
I had the same thought. The following would be the "default way" for me but passing that object's address to addRoot would be wrong:
import core.memory; struct S { } void main() { auto a = S(); GC.addRoot(&a); // Wrong: 'a' is on the stack } I'm pretty sure frame knows this but still... Ali