`alias x = v.x;` not working in struct bodies?

Max Samukha maxsamukha at gmail.com
Sat Jan 20 20:25:21 UTC 2024


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.


More information about the Digitalmars-d mailing list