What does @nogc do to a class?

Jack jckj33 at gmail.com
Sat May 8 18:16:06 UTC 2021


On Thursday, 6 May 2021 at 22:16:04 UTC, Per Nordlöw wrote:
> On Thursday, 6 May 2021 at 01:04:02 UTC, Jack wrote:
>> Does it allocate the object rather on stack, like auto scope a 
>> = new A or what?
>
> Further note that
>
>     auto scope a = new A;
>
> can be written shorter as
>
>     scope a = new A;

I'll be using that, thanks!


More information about the Digitalmars-d-learn mailing list