Delay allocating class instance in stack.

ANtlord via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 21 01:29:26 PDT 2017


On Tuesday, 21 March 2017 at 08:12:36 UTC, rikki cattermole wrote:
> You probably want[0] to allocate a class on the stack instead 
> of doing this.
>
> [0] http://dlang.org/phobos/std_typecons.html#.scoped

If I will use it I won't use @nogc. Is the only one case?


More information about the Digitalmars-d-learn mailing list