Re:Rust for C++ programmers – part 4: unique pointers
by nly on Tuesday April 29, 2014 @10:19AM
(#7667111)
This is because delete is an operator that can be overridden, and whether it has been overridden isn't known until link time.
and now it's safe :P... and yes, never freeing any memory is arguably a perfectly valid memory management strategy. Ok, this example is nuts... but it's a feature of C++, in the C tradition, that it lets you do crazy things. Can I plug custom per-type memory allocators in to Rust?
[ Parent
| on HN ]
There are no comments on this comment yet.