[Issue 24395] Allow braced statements in loop conditions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 2 15:11:24 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24395

--- Comment #1 from Bolpat <qs.il.paperinik at gmail.com> ---
Can also be extended to `if` statements:
```d
if ({ auto x = f(); !x.empty; }) { }
```

--


More information about the Digitalmars-d-bugs mailing list