`alias x = v.x;` not working in struct bodies?
Max Samukha
maxsamukha at gmail.com
Sun Jan 21 09:18:24 UTC 2024
On Saturday, 20 January 2024 at 20:25:21 UTC, Max Samukha wrote:
> On Saturday, 20 January 2024 at 15:55:13 UTC, Paul Backus wrote:
>
>>
>> `alias this` is used as a fallback for member lookup when no
>> symbol with the requested name exists. Since you declared a
>> symbol named `x` in `S2`, there is no need to fall back to
>> `alias this` when attempting to look up `S2().x`.
>
> Arguable but I don't have the energy to argue. Let it be.
I've filed a bug report for this, just in case
https://issues.dlang.org/show_bug.cgi?id=24350
More information about the Digitalmars-d
mailing list