Classes on stack

Dennis dkorpel at gmail.com
Thu Sep 1 09:53:08 UTC 2022


On Thursday, 1 September 2022 at 09:43:55 UTC, Redwan wrote:
> oh, thank you. with this, no allocation??

No heap allocation. The `@nogc` attribute is enforced by the 
compiler, so you will get an error if you use `new` without 
`scope` here.


More information about the Digitalmars-d mailing list