2 ms·
Just to be clear for @bitwize, nil is an object like everything else in smalltalk. It's an instance of UndefinedObject. It isn't special in any way and executes
by massung 5y ago
Just to be clear for @bitwize, nil is an object like everything else in smalltalk. It's an instance of UndefinedObject. It isn't special in any way and executes any method it understands just like all other objects.
Object>>isNil
^false
UndefinedObject>>isNil
^true
It drops into the debugger if you pass it a message it doesn't understand.
- bitwize 5y agoI think I might've described how Objective-C works. It's been a while since I worked in depth with Smalltalk.