R
Rui Maciel
Kenny said:You are really stretching things here. The code you posted is C code,
right? How could it "make sense" in any other context?
To clarify: If we posit the existence of another language, in which
pointers are safe, then obviously that language isn't C.
The problem with this sort of assertion is that it is based on examples
which represent undefined behaviour, which, in this case, represent
"erroneous program constructs". If a tool is used contrary to how it was
designed to be used and in ways which are considered to be dangerous and an
obvious source of problems then this isn't an issue of whether a specific
feature is safe or unsafe. The real issue is whether the programmer
actually knows what he is doing. If the programmer doesn't know what he is
doing then, no matter how "safe" that language is, the programmer will
always find ways to screw things up.
Rui Maciel