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.

Reply via email to