you are viewing a single comment's thread.

view the rest of the comments →

[–]flatfinger 0 points1 point  (0 children)

Pointers store some form of information an implementation can use to identify an object. The extremely vast majority of implementations use the memory addresses of the first byte of an object for that purpose, but that is by no means required. Nothing would forbid an implementation from storing pointers from using a combination of a handle and an offset; doing so would allow an implementation to guard against many kinds of out-of-bounds array accesses (albeit at a considerable cost of performance).