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

bachmeier no at spam.net
Mon Nov 4 20:34:47 UTC 2019


On Monday, 4 November 2019 at 16:48:21 UTC, 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.

I don't know if this is related, but dpp ignored anonymous enums, 
so it may have been the same issue.


More information about the Digitalmars-d mailing list