C is Brittle D is Plastic
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Apr 3 07:03:12 UTC 2026
On 22/03/2026 5:47 PM, Walter Bright wrote:
> The fix is simple - use length-delimited strings. D relies on them to
> great effect. This can be done in C, but there is no succor from the
> language, and such a package is not standardized. I've proposed a simple
> enhancement for C to make them work https://www.digitalmars.com/
> articles/C-biggest-mistake.html <https://www.digitalmars.com/articles/C-
> biggest-mistake.html> but nobody in the C world has any interest in it
> (which is baffling, as it is so simple!).
It is not officially documented:
https://www.open-std.org/jtc1/sc22/wg14/www/wg14_document_log.htm
Unless its there, it does not exist.
But there is plenty of desire for memory safety for C, including full
blown static analysis prescribed by the spec.
You should be contacting Uecker who is leading the memory safety
workgroup. https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3211.pdf
More information about the Digitalmars-d
mailing list