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

> I'm not sure how they did that (#define?) but stay far, far away

...NO and YES in Objective-C are themselves #defines. As others have pointed out, TRUE/FALSE are also already defined in the language, although using them in Objective-C is not good style.

http://www.opensource.apple.com/source/objc4/objc4-371.1/run...



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

Search: