Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For situations like this, I prefer a generational index where the lookup fails if the object has been destroyed. For context, the "manager" that holds the objects referred to typically has a lifetime of the whole program.


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

Search: