[SAoC] 'DPP with Linux kernel headers' Project Thread

rikki cattermole rikki at cattermole.co.nz
Mon Nov 4 16:54:07 UTC 2019

On 05/11/2019 5:48 AM, Atila Neves wrote:
> On Monday, 4 November 2019 at 09:17:57 UTC, Jacob Carlborg wrote:
>> On Sunday, 3 November 2019 at 16:37:36 UTC, Cristian Becerescu wrote:
>>> When encountering anonymous structs or unions, dpp gives them a name. 
>>> And this forces dpp to declare a member of that 'now-named-anon' 
>>> record type and also provide accessors for the 'now-named-anon' 
>>> record (because unnamed records also implicitly declare a member of 
>>> their type).
>> But the question is why is DPP generating named unions/structs when D 
>> supports anonymous ones?
> Probably because I either didn't know that at the time but knew and 
> forgot. I don't remember what I was trying to do or why just doing the 
> obvious failed.

It sounds like you were too liberal in doing this.

There is a variant of struct/union in C which has a named instance but 
no type name.

More information about the Digitalmars-d mailing list