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@79

Reply via email to