Re:Rust via its Core Values
by bogomipz on Monday April 04, 2016 @06:24AM
(#11420696)
Thanks, could you explain the "indirections" in this context? I haven't heard this before.
[ Parent
| on HN ]
Array accesses are implicit indirections. The base, index and element size are used to compute the address of a location which is then indirected to store or load. Without range checking, array accesses can be used to read or write arbitrary locations in memory, just like pointers.