char[] ported from C to char[0] in the D core library
badlink via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Sep 10 23:53:33 PDT 2015
On Wednesday, 9 September 2015 at 19:37:54 UTC, Alex Parrill
wrote:
> It's a flexible array member [1], not a pointer. Changing it to
> `char*` would make it incompatible with the C functions using
> it.
>
> [1]: https://en.wikipedia.org/wiki/Flexible_array_member
TIL a new detail about C on the D forum ;)
More information about the Digitalmars-d-learn
mailing list