Or incorporating features from this 14 item list? https://blog.regehr.org/archives/1180
As it appears these have failed: https://blog.regehr.org/archives/1287
Or incorporating features from this 14 item list? https://blog.regehr.org/archives/1180
As it appears these have failed: https://blog.regehr.org/archives/1287
Making C friendlier is always a good idea, and I think the committee is (slowly) working towards this goal. I would have to examine these papers by John Regehr in more detail. Looking quickly at his proposals I can see why there he couldn't find consensus for these ideas as some of them do appear controversial.
An example of a friendly dialect of C is always is C0 (C-naught) from CMU. I don't think I'm exaggerating when I say that this language has not "caught on".
int test(int a, int b)
{
int c = a/b;
if (f1())
f2(a,b,c);
}
Should a compiler be required to compute c before calling f1, and thus have to store the value of c across the function call?Better would be to define a set of semantics for loosely-sequenced traps, along with "causality barriers" to ensure that they only occur at tolerable times.