[Issue 22606] init differs from ctor call for structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 20 15:40:46 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22606
--- Comment #1 from anonymous4 <dfj1esp02 at sneakemail.com> ---
You mean you want it for the sake of consistency? FWIW init is now static data
that always exists to initialize a variable, but a nested struct needs a
dynamic initializer to set the context pointer, init can't do it, but a
constructor does it.
--
More information about the Digitalmars-d-bugs
mailing list