3 ms·
Unsafe behaviours with raw pointers: - dereferencing - arithmetic (implemented as ptr.offset(number) in the stdlib), since it is undefined behaviour f
by dbaupp 13y ago
Unsafe behaviours with raw pointers:
- dereferencing
- arithmetic (implemented as ptr.offset(number) in the stdlib),
since it is undefined behaviour for LLVM to move a pointer to
point outside* of the object that it came from originally
(even without deferencing)
Everything else is OK. (Although the only other thing possible is passing it around as "black box" value.)
*One byte past the end is ok.