Nim Expert · Lesson 7

Unsafe code: ptr, addr, and cast

Raw pointers, address-of, pointer arithmetic via UncheckedArray, and reinterpretation with cast.

Lessons · Nim Expert · Lesson 7 of 10

Unsafe code: ptr, addr, and cast

Raw pointers, address-of, pointer arithmetic via UncheckedArray, and reinterpretation with cast.

Illustration for Nim
Raw pointers, address-of, pointer arithmetic via UncheckedArray, and reinterpretation with cast.