Hacker News new | past | comments | ask | show | jobs | submit login

> “Typing self.foo releases and nils the variables.” Yes, if it’s a retain or copy property.

> “Just typing foo = nil is a memory leak.” Yes, if you had retained the object, but not if it were a weak reference. Admittedly, this is a semi-rare scenario.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: