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

This pointer-to-bool bug isn't theoretical, either—it happened to me just a few months ago. The Cocoa function NSAssert works on objects, and raises an exception on a nil pointer. A similar assertion in a library I was using was simply casting to BOOL (a signed char), causing the error you described. It was a nightmare to debug, since it was interacting with a black box that I believed was the source of the problem.


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

Search: