Address
:
[Go to site:
main page
,
start
]
Usuń skrypty
Akceptuj cookies
Pokaż obrazy
Użyj Referer
Rotate13
Base64
Usu meta tagi
Usuń tytuł srony
Sesja cookies
Smalltalk Parser
Program
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." |y| y := true & false not & (nil isNil) ifFalse: [self halt]. self size + super size. #($a #a "a" 1 1.0) do: [:each | Transcript show: (each class name); show: ' ' ]
Output