Double bracket "{{" for scoping static foreach is no longer part of D
data pulverizer
data.pulverizer at gmail.com
Wed Dec 22 16:30:06 UTC 2021
On Wednesday, 22 December 2021 at 16:10:42 UTC, Adam D Ruppe
wrote:
> So OUTSIDE a function, static foreach() {{ }} is illegal
> because a plain {} is illegal outside a function.
>
> But INSIDE a function, static foreach() {{ }} is legal, but it
> isn't magic about static foreach - it is just a body with its
> optional {} present as well as a scope statement inside.
>
Just seen this. Thanks - I should have been more patient.
More information about the Digitalmars-d-learn
mailing list