Y
Hacker News
new
|
ask
|
show
|
jobs
by
bronz
3344 days ago
it actually does in a certain way. if at some point the lone pointer ("pointer") to that memory goes out of scope then the memory is deallocated. happens a lot.
1 comments
Rusky
3343 days ago
I'm well aware of that. Safe Rust, however, allows you to put that pointer in an Rc cycle, or call mem::forget on it, etc.
link