Mixin C

Daniel N no at public.email
Sat Mar 9 09:20:04 UTC 2024


On Friday, 8 March 2024 at 18:03:47 UTC, Paul Backus wrote:
>
> ```d
> nothrow @nogc
> mixin(C) {
>     #include <libwhatever.h>
> }
> ```
>
> There's currently no way to do this with ImportC, and even if 
> there were, it would likely require modifying the header file 
> (for example, with the `#pragma` suggested in [issue 23812][1]).
>
> [1]: https://issues.dlang.org/show_bug.cgi?id=23812

wow, that is cool!


More information about the dip.ideas mailing list