Comment by cryptonector
3 months ago
> Can you return `UniquePtr` from a function?
Yes: you can return structures by value in C (and also pass them by value).
> Can you store a copy of `SharedPtr` somewhere without accidentally forgetting to increment the refcount?
No, this you can't do.
No comments yet
Contribute on Hacker News ↗