ImportC Rox

Sergey kornburn at yandex.ru
Wed Nov 9 15:39:25 UTC 2022


On Wednesday, 9 November 2022 at 15:00:39 UTC, Don Allen wrote:
> On Monday, 7 November 2022 at 22:05:38 UTC, Walter Bright wrote:
>> https://news.ycombinator.com/item?id=33509223
>
> I read the ImportC documentation when it first became available 
> and several times since. I did not come away from those 
> readings with a clear idea of how to use it to rid myself of 
> the above. Then I saw Walter's comment in the link above. Aha 
> -- you can just import header files in D code! Walter's comment 
> made two things clear -- how to use ImportC in my case and that 
> the documentation needs to be corrected and improved with an 
> example of importing a C header file. Importing header files so 
> you can directly use C libraries is a major reason why ImportC 
> is an important addition to D and it should be crystal clear in 
> the documentation how to do it.

This shows that we need HOWTO or tutorial with explanation of 
possible usage and how to deal with possible problems.


More information about the Digitalmars-d mailing list