ImportC can now automatically run the preprocessor

jmh530 john.michael.hall at gmail.com
Mon May 16 12:28:59 UTC 2022


On Monday, 16 May 2022 at 12:07:04 UTC, Mike Parker wrote:
> On Monday, 16 May 2022 at 11:55:57 UTC, jmh530 wrote:
>> On Saturday, 14 May 2022 at 21:05:09 UTC, Walter Bright wrote:
>>> As https://github.com/dlang/dmd/pull/14121 has been merged, 
>>> the following #ImportC program can now be compiled and run:
>>>
>>>   #include <stdio.h>
>>>
>>>   void main()
>>>   {
>>>     printf("hello ImportC!\n");
>>>   }
>>>
>>> [snip]
>>
>> Sorry if this is a dumb question, but when you refer to 
>> something as a "ImportC" program, what precisely do you mean? 
>> It's a D program that requires importC features to work?
>
> It's just normal C source code compiled with the ImportC 
> compiler.

Thanks. I was confused because I thought "void main" was a D 
thing and not a C thing.


More information about the Digitalmars-d mailing list