2 ms·
What's gross to me is compilers often know a function has been passed a pointer to fixed sized object. And have hacky ways to determine that at run time. Not to
by Gibbon1 5y ago
What's gross to me is compilers often know a function has been passed a pointer to fixed sized object. And have hacky ways to determine that at run time. Not to mention all these compilers do know what a phat pointer is.
Says to me the problem is the people on the standards committee.
- WalterBright 5y agoI can understand C's reluctance to add features and complexity, anything that would make it not C. But the memory safety issue is such an enormous problem, and the fix is so simple, and the fix has been proven in 20 years of constant use in D, that I just can't see not incorporating it.
- Gibbon1 5y agoHow about adding a compiler switch like std=c23-heretical or -c23-make-baby-richie-cry. And then let programmers decide if they want to live in the dark ages.
- WalterBright 5y agoA switch isn't needed for my proposal. You can mix & match it with legacy code.