I do. But I never used const. I just took care not to modify them. In
fact, I never needed to modify them.
It's a great way to do it. Just like grenades. Don't bother with
putting pins in them, just hold the handles down and they are safe.
Who will put a qualifier before something and modify this thing
later?
The second programmer, who never saw the qualifier put there.
And if he dose not modify this thing later, why dose he put a
qualifier before it?
To give him an error message to tell him he did something stupid.
I could not under why people do that. When I saw some old C code, I
found people never used const. Their programs are still robust enough
without const.
If you substitute the word "fragile" with "robust" then I can agree
with you.
Old code often won't even compile with modern compilers, and the older
it is the less likely it will compile.
If it does succeed in compiling, chances are good it won't run.
If it does run, it is likely to be packed with exploits like gets()
because old time programmers did not have to deal with a hostile
audience.
Old numerical stuff is sometimes villianously bad.