You are correct in saying that Nim does have C style pointers (ptr keyword). These are unsafe, but are meant to be used as part of the FFI. So when developing ordinary applications you should not be using them, unless you absolutely have to.
Nim also has references (ref keyword) which are traced by the GC and therefore safe.
Nim also has references (ref keyword) which are traced by the GC and therefore safe.