What should happen here?

Kagamin spam at here.lot
Wed Sep 22 12:12:31 UTC 2021


On Monday, 20 September 2021 at 18:49:12 UTC, Steven 
Schveighoffer wrote:
> This to me seems like "leaving a pointer to it on the stack". 
> I'm not sure how else I would do that specifically? Plus, this 
> option is the only "free" one -- the others all require much 
> more complication. Adding a pointer to the stack is free. It's 
> just, I don't know how to tell the compiler to do that besides 
> declaring it.

If you use the pointer after the call, that's an easy way to 
ensure that the pointer is kept around long enough.


More information about the Digitalmars-d mailing list