Why is D unpopular, redux.
Walter Bright
newshound2 at digitalmars.com
Wed May 25 01:22:11 UTC 2022
On 5/24/2022 4:35 PM, Timon Gehr wrote:
> This compiles even with -dip1000:
>
> ```d
> import std.stdio;
>
> void main()@safe{
> void delegate()@safe[] dgList;
> foreach(i; [1, 2, 3]) {
> immutable b = i;
> dgList ~= { writeln(b); };
> }
> foreach(dg; dgList) dg();
> }
> ```
>
> I.e., this issue is alive and well. It's a memory safety issue in @system code
> and it's a soundness problem for @safe.
https://issues.dlang.org/show_bug.cgi?id=23136
More information about the Digitalmars-d
mailing list