| > > > Everything is an object… "Every object in Smalltalk, even a lowly integer, has a set of messages, a protocol, that defines the explicit communication to which that object can respond. Internally, objects may have local storage and access to other shared information which comprise the implicit context of all communication." p290 Byte Magazine 1981 http://worrydream.com/refs/Ingalls%20-%20Design%20Principles... > > > … instead of a function… Instead of a function, a message. Let's take that literally — perform: aSymbol with: anObject
Answer the result of sending a binary message
to the receiver with selector aSymbol and argument
anObject. Report an error if the number of arguments
expected by the selector is not one.
(For more of those methods, see p425https://rmod-files.lille.inria.fr/FreeBooks/SmalltalkVTutori...
) Last-time I remember using those #perform methods, it was for testing — walking the code sending arbitrary messages and and arguments. |