Smalltalk/X WebserverDocumentation of class 'Dolphin::DeafObject': | |
Class: DeafObject (in Dolphin)Inheritance:Object | +--Singleton | +--Dolphin::DeafObject
Description:DeafObject is a singleton class whose sole instance is deaf to all requests - i.e. it appears to understand all messages, but takes no action except to answer itself. This ensures that the results of all message sends to the DeafObject are also deaf. DeafObject can be useful for avoiding a proliferation of #isNil tests. N.B. DeafObject cannot be used to substitute for any object which has special significance to either the Compiler or the VM, a good example being <Boolean>s. The following expression will raise a 'Must be boolean' error because it is not a true message send: DeafObject current ifTrue: [] Class Variables: Current <DeafObject>. Singleton instance. Class protocol:accessing
Instance protocol:comparing
|
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:41:40 GMT |