Something like ADL from C++?
Max Samukha
maxsamukha at gmail.com
Thu Dec 26 07:36:08 UTC 2024
On Tuesday, 3 December 2024 at 22:16:26 UTC, Walter Bright wrote:
> 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.
Without having read the rest of the thread: I meant Timon's
`__local` or whatever it's morphed into since then.
> (Same as for static if.) However, you can still add { } to make
> a scope:
>
> ```
> { static foreach(...) { } }
> ```
> Or:
> ```
> static foreach (...) {{ }}
> ```
That's mostly useless, indeed.
More information about the Digitalmars-d
mailing list