dynamically allocating on the stack

Giles Bathgate giles.bathgate at gmail.com
Sat Apr 21 10:58:51 UTC 2018


On Saturday, 21 April 2018 at 10:47:47 UTC, Timon Gehr wrote:
> That does not work (you are returning a dangling reference into 
> the stack of the function that is returning).

Yeah I had hoped that the pragma(inline, true) would solve that, 
but it dosesn't :(




More information about the Digitalmars-d-learn mailing list