Guest User

Untitled

a guest
Feb 21st, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. "This is a small method that illustrates every part of Smalltalk method syntax except primitives"
  2. |y|
  3. true & false not & (nil isNil) ifFalse: [self halt].
  4. y := self size + super size.
  5. #($a #a 'a' 1 1.0)
  6. do: [:each | Transcript
  7. show: (each class name);
  8. show: (each printString);
  9. show: ' '].
  10. ^ x < y
Add Comment
Please, Sign In to add comment