ImportC and #pragma pack
Kenneth Dallmann
fake at 123.con
Wed Sep 29 19:41:31 UTC 2021
On Tuesday, 28 September 2021 at 06:05:04 UTC, Walter Bright
wrote:
> https://issues.dlang.org/show_bug.cgi?id=22315
>
> I'm on the fence about implementing this. On the one hand, I
> can do it and make it work. On the other hand, the C11 way is
> to use _Alignas, and that's 10 years old now. How far do we go
> with implementing all the nutburger obsolete C extension cruft
> out there?
I have to add to my message.
If D is not a superset of C then there's no need for
"compatibility".
There are already enough underlying differences in syntax that D
is not truly
"compatible" with C. You could make D a typechecked Python with
little similarities
in syntax and still say it is compatible.
So long as it can be translated to C and that it can build symbol
tables of C, for
typing, then it would still have all the same usability as
"betterC".
More information about the Digitalmars-d
mailing list