3 ms·
You actually get message not understood and dropped into the Smalltalk debugger if you send a message to nil.
by fmakunbound 5y ago
You actually get message not understood and dropped into the Smalltalk debugger if you send a message to nil.
- massung 5y agoJust 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.