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

Atila Neves atila.neves at gmail.com
Mon Nov 4 16:48:21 UTC 2019

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.

More information about the Digitalmars-d mailing list