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

Jacob Carlborg doob at me.com
Sat Nov 2 17:02:45 UTC 2019


On 2019-11-01 21:39, Cristian Becerescu wrote:

> Sorry for taking so long to reply.
> 
> I've written a simple example where dpp fails to generate valid D code 
> for the problem I mention earlier. The example is in this gist (for 
> syntax highlighting): 
> https://gist.github.com/cbecerescu/9a114bb92b23bd8e275a8eae08c6cc2f

Wow, that's complicated. DStep [1] generates this:

extern (C):

struct A_struct
{
     union
     {
         int a;

         struct
         {
             int b;

             union
             {
                 int c;
                 char d;
             }
         }
     }
}

[1] http://github.com/jacob-carlborg/dstep

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list