[Language construct idea] The for loop with prepare step
Quirin Schroll
qs.il.paperinik at gmail.com
Thu Feb 15 15:26:42 UTC 2024
On Tuesday, 13 February 2024 at 11:39:56 UTC, Quirin Schroll
wrote:
> […]
>
> Alternatively, one can double-down on D’s for loop weirdness
> and allow this:
> ```d
> for ({int i = 1; int n = 10;} i < n; ++i) { } // already
> possible
> for (int i = 0; {int n = 10 - i; i < n;} ++i) { } // new!
> ```
I filed this as an enhancement:
https://issues.dlang.org/show_bug.cgi?id=24395
More information about the Digitalmars-d
mailing list