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

Max Samukha maxsamukha at gmail.com
Sat Jan 20 14:56:52 UTC 2024


On Saturday, 20 January 2024 at 13:39:37 UTC, Nick Treleaven 
wrote:

> You can't alias fields of an aggregate type instance outside of 
> the type definition.

It's not an alias of some arbitrary symbol. The field is 
accessible through 'this' of the deriving struct, and it is 
reasonable to expect it should be accessible though an alias in 
the context of that 'this'.


More information about the Digitalmars-d mailing list