Something like ADL from C++?
Walter Bright
newshound2 at digitalmars.com
Tue Dec 3 22:16:26 UTC 2024
On 12/3/2024 7:17 AM, Max Samukha wrote:
> // this is needed because we still cannot express "local to static foreach".
That's because static foreach will become fairly useless if it introduced a
scope. (Same as for static if.) However, you can still add { } to make a scope:
```
{ static foreach(...) { } }
```
Or:
```
static foreach (...) {{ }}
```
More information about the Digitalmars-d
mailing list