Copy Constructor

Salih Dincer salihdb at hotmail.com
Sun Jun 5 19:00:14 UTC 2022


On Sunday, 5 June 2022 at 18:43:19 UTC, Alain De Vos wrote:
> Does Foo(3) lives on the stack or the heap ?

Definitely not stack because that's what happens when the new 
operator is used. Article 14.3: 
https://dlang.org/spec/struct.html#intro

SDB at 79


More information about the Digitalmars-d-learn mailing list