3 ms·
In Objective-C 'nil' is a special object (internally rwpresented by a null pointer). When the runtime is instructed to invoke any method on nil, the method does
by bitwize 12y ago
In Objective-C 'nil' is a special object (internally rwpresented by a null pointer). When the runtime is instructed to invoke any method on nil, the method does nothing and returns nil (rather than crashing). I think this is an artifact of Smalltalk behavior.
- sceutre 12y agoThis is all Objective-C. In Smalltalk sending messages to nil results in a #doesNotUnderstand: runtime exception.