J
Jason Curl
Out of curiosity - is this something like "smart pointers", where aMichael said:While we're pointing out errors here, I'd like to note that a pointer
can contain something other than a simple address; and there is at
least one implementation (AS/400 ILE C) which I believe is conforming
and which does so. (ILE C pointers contain some kind of reference to
a "memory space" and an offset into that space, and possibly other
information; some of this can be seen by displaying the value of a
valid non-null pointer with the "%p" printf specifier.)
So besides not assuming that null pointers have the value all-bits-
zero, you shouldn't assume that non-null pointers have just a simple
address.
compiler can have an implementation of a pointer as some kind of
datastructure that can be used for "secure" programming (avoiding buffer
overflows)?
Does anyone know of any compilers for IA32 (Win / Linux) that might be
free that implements more complex pointers?
Jason.