D as an extension language for C

Dave P. dave287091 at gmail.com
Sat May 13 20:49:03 UTC 2023


On Saturday, 13 May 2023 at 18:09:33 UTC, Walter Bright wrote:
> On 5/12/2023 3:07 PM, user wrote:
>> Future: D as better assembly
>
> […]
> Using D as an extension language for ImportC enabled me to 
> easily get working a number of C features (such as variadic 
> arguments) that would otherwise have required a fair chunk of 
> explicit code to implement. Instead, I was able have it use D's 
> existing implementation code (which is non-trivial) in 
> core.stdc.stdarg.
>
> I.e. ImportC is an enabler of D use.

Unfortunately for that example, dmd’s implementation of c varargs 
is buggy.
https://issues.dlang.org/show_bug.cgi?id=23409




More information about the Digitalmars-d mailing list