2 ms·
As someone whose only real exposure to C level programming has been iOS and Obj-C, the way I read this it works similar to ARC, am I correct in that conclusion?
by te_chris 14y ago
As someone whose only real exposure to C level programming has been iOS and Obj-C, the way I read this it works similar to ARC, am I correct in that conclusion?
- lifthrasiir 14y agoNot exactly, unique smart pointer (~-ptr) does not need the reference counting at all. It is comparable to a raw pointer with much stronger compile time check. In fact, I think using unique smart pointers does not require the runtime at all (I'm not sure as I'm still scratching the surface of rustc).
- pcwalton 14y agoThey don't require the runtime (the "embedding Rust in Ruby" post, for example, uses them), but they do require some implementation of malloc and free.