This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exampleWithNumber: x | |
"A method that illustrates every part of Smalltalk method syntax | |
except primitives. It has unary, binary, and keyword messages, | |
declares arguments and temporaries, accesses a global variable | |
(but not and instance variable), uses literals (array, character, | |
symbol, string, integer, float), uses the pseudo variables | |
true false, nil, self, and super, and has sequence, assignment, | |
return and cascade. It has both zero argument and one argument blocks." |