News for hackers. Stuff that matters.
Re:New school C by jrockway on Wednesday December 26, 2012 @12:53PM (#4970103)
Weak references are more for keeping things like hash keys from creating a reference than for preventing your program from segfaulting.

Object lifecycle and reference counting are two completely different things that only appear to be related. Even if you figure out your C++ auto_smart_magic pointers, you still have to decide when the object you're referring to is no longer necessary, just like you would in Python or Java.

There are no comments on this comment yet.