Add ImportC compiler to dmd
Patrick Schluter
Patrick.Schluter at bbox.fr
Mon May 10 09:46:00 UTC 2021
On Monday, 10 May 2021 at 09:24:39 UTC, Walter Bright wrote:
> On 5/10/2021 12:39 AM, Patrick Schluter wrote:
>> The only thing that bothers me as it is now is the fact that
>> it doesn't support intializer list `{ intializers }`, which I
>> suppose means that designated initializers `{ .field = ...,
>> [3]=... }`and compound statements `(type){ initializers }` are
>> not working either. This would be a real real problem for
>> modern C code (C99 and superior).
>
> The only issue is { initializer-list } has no direct analog in
> D, so I've got to add one to the D side.
>
> For the purpose of this prototype, I wished to avoid adding
> code that wasn't in cparse.d.
I get that but just wanted to point out that that will be a big
issue (it's such a big issue that C++ had to implement it with
C++20).
More information about the Digitalmars-d
mailing list