Re:“C is quirky, flawed, and an enormous success” – Dennis R...
by tejuis on Sunday July 09, 2023 @10:05AM
(#36654530)
Same here, no problems with undefined behavior. Also, no memory issues either after done with code finalization using Valgrind.
[ Parent
| on HN ]
Re:“C is quirky, flawed, and an enormous success” – Dennis R...
by kaba0 on Monday July 10, 2023 @02:40AM
(#36662846)
“no memory issues in the tested state space”. That’s the only thing Valgrind can say. But it says nothing how a run with different input would behave, it just might segfault/leak/use after free/UB.
Re:“C is quirky, flawed, and an enormous success” – Dennis R...
by coliveira on Thursday July 13, 2023 @01:43PM
(#36713113)
That is always the case in any platform. Just because something works on a Mac it will not necessarily work on a PC or vice-versa. If a language has multiple compilers, you also need to test in different compilers to make sure your code works there too. You're trying to make this as a C-only issue, when it is a general issue, maybe with different names.