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.