Can now use alias for collapsing multiple fields in nested structs

Walter Bright newshound2 at digitalmars.com
Mon Jan 6 08:37:20 UTC 2025


On 1/2/2025 1:14 PM, ryuukk_ wrote:
> that's hard to learn, why is it possible to do `outter.b = 42`?

Anonymous structs/unions aren't actually structs/unions in D at all. They only 
control layout. This characteristic is quite useful, C11 added it.


More information about the Digitalmars-d mailing list