Add ImportC compiler to dmd

jmh530 john.michael.hall at gmail.com
Tue May 11 13:42:05 UTC 2021


On Monday, 10 May 2021 at 02:51:35 UTC, Walter Bright wrote:
> On 5/9/2021 7:22 PM, Brian wrote:
>> As a new user to D, I was legitimately surprised that D didn't 
>> already compile C with the very explicit writings about 
>> DasBetterC, going so far as to having a -betterC flag. Perhaps 
>> that was my mistake in understanding the language. I wonder 
>> how many other newcomers also experience that confusion.
>
> Having both ImportC and DasBetterC is definitely a messaging 
> issue.

Have you tried to mix ImportC with the -betterC flag?

I wonder what the error looks like if you ImportC a C main 
function but then also have a betterC D file with a main function.


More information about the Digitalmars-d mailing list