Mixin C

Lance Bachmeier no at spam.net
Fri Mar 8 14:39:46 UTC 2024


On Friday, 8 March 2024 at 03:23:12 UTC, Paul Backus wrote:

> I haven't spent much time fleshing out the details of this 
> idea, but it seems pretty promising. What do you guys think?

Translation of C macros to D can sometimes [give incorrect 
behavior](https://github.com/dlang/dmd/pull/16199). With the 
current implementation, it does that silently, and that  
obviously raises questions about the reliability of the final 
product. My proposal is to allow the user to compile C code 
inside unit tests so there's at least a chance of catching bugs. 
What you are proposing would make that possible.


More information about the dip.ideas mailing list