[SAOC 2025]improve importC Weekly Update 1

Steven Schveighoffer schveiguy at gmail.com
Tue Sep 23 12:41:36 UTC 2025


On Tuesday, 23 September 2025 at 12:34:46 UTC, jmh530 wrote:
> On Monday, 22 September 2025 at 13:02:45 UTC, Emmanuel wrote:
>> Hello D community,
>>
>> The past week, I worked on fixing compilation failures in 
>> importC involving struct delegated initializer.
>>
>> [snip]
>
> Thanks for working on import C.
>
> I feel like I would be remiss if I didn't mention the prior 
> controversy about getting importC to recognize .i and .c files 
> [1]. Not that I want to derail your plans for the SAOC...
>
> Anyway, the suggestion from Steve was [2] was to have a 
> separate "-CI" compiler flag to let the compiler know there is 
> a separate path for C imports. The thread suggested that Walter 
> might be sympathetic to this approach, but he also suggested an 
> approach of putting the file on the command line directly [3], 
> which Ian argued would cause duplicate symbol issues [4]. But I 
> don't think anyone really came up with an objection to Steve's 
> recommendation.


`.h` files are now recognized. And most of the issues that were 
plaguing importc file lookups are resolved.

I think we should let the next release get some use before 
deciding to add more switches.

-Steve



More information about the Digitalmars-d mailing list