Please fix `.init` property
Bastiaan Veelo
Bastiaan at Veelo.net
Mon Jan 8 11:53:52 UTC 2024
On Sunday, 7 January 2024 at 23:12:30 UTC, Hipreme wrote:
> ```d
> struct MyTest
> {
> string[] dirs = ["source"];
> }
> ```
I have argued that initializers of non-static members that
allocate should be an error [1]. Mike and Steven agree [2, 3].
[1]
https://forum.dlang.org/post/ogvubzgprghefclgluce@forum.dlang.org
[2]
https://forum.dlang.org/post/wvrasioewzbqrqsufwxd@forum.dlang.org
[3] https://forum.dlang.org/post/t7vm2o$p4q$1@digitalmars.com
I will add pointers to
https://issues.dlang.org/show_bug.cgi?id=24324.
-- Bastiaan.
More information about the Digitalmars-d
mailing list