Does it allocate the object rather on stack, like auto scope a = new A or what?
Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 06, 2021 What does @nogc do to a class? | ||||
---|---|---|---|---|
| ||||
May 06, 2021 Re: What does @nogc do to a class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jack | 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? It doesn't do anything to classes. |
May 06, 2021 Re: What does @nogc do to a class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Thursday, 6 May 2021 at 02:11:27 UTC, Mike Parker 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? It doesn't do anything to classes. I see, thanks! |
May 06, 2021 Re: What does @nogc do to a class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jack | 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
can be written shorter as
|
May 08, 2021 Re: What does @nogc do to a class? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Per Nordlöw | 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
can be written shorter as
I'll be using that, thanks! |