Pointer comparison and Portability

pes at bath63.UUCP pes at bath63.UUCP
Fri Feb 20 22:47:24 AEST 1987


Well, Multics itself provides the most dangerous of both worlds in that you
can get:

Two pointers of (to all determinable checks) *look* different but which in
fact point to the same thing (because the program has, through some cutesy
trick, managed to get the same 'physical' segment initiated twice, with 2
different 'logical' segment numbers.

Two pointers which (as near as can be determined) are identical, but which
the program 'thinks' (and which are 'supposed to') point at different things
(because the program has gotten a pointer to some 'object', and then managed
to terminate the 'physical' segment, and initiate a new segment, with the
same 'logical' segment number.

Admittedly, both of these effects require some fairly shady programming, but
unfortunately that's not unheard of.  They can also be achieved fairly
easily on large projects involving several programmers and a communication
breakdown.



More information about the Comp.lang.c mailing list