4 ms·
Learn Smalltalk. myObj 4 "this sends the number four to myObj. Yes, comments are in quotation marks" 4 factorial "yep, numbers are objects too" 0 + 4 "se
by gjvnq 5y ago
Learn Smalltalk.
myObj 4 "this sends the number four to myObj. Yes, comments are in quotation marks"
4 factorial "yep, numbers are objects too"
0 + 4 "sends the 4 as a message to 0"
myObj arg1: 1 arg2: 'a' "if you need more than 2 arguments you use keyword messages"