ImportC + metaprogramming?

max haughton maxhaton at
Sun Jan 16 14:36:06 UTC 2022

On Sunday, 16 January 2022 at 08:13:37 UTC, Walter Bright wrote:
> In this PR,
> I added the ability for an ImportC file to import a D file. The 
> initial purpose was so that core.stdc.stdarg could be imported 
> to support variadics in C, without reimplementing them.
> I realized that this actually works - ImportC code can call D 
> code! even use D templates!
> So then I got to thinking "what the hell have I unleashed?"
> I think I just destroyed dtoh.

If I want to call D from C it still sounds like I would be using 

More information about the Digitalmars-d mailing list