Files
Basalt2/node_modules/shiki/samples/smalltalk.sample
Robert Jelic b0a4a6da9c Vitepress
2025-02-10 06:53:23 +01:00

12 lines
308 B
Plaintext

exampleWithNumber: x
| y |
true & false not & (nil isNil) ifFalse: [self halt].
y := self size + super size.
#($a #a 'a' 1 1.0)
do: [ :each |
Transcript show: (each class name);
show: ' '].
^x < y
"From https://en.wikipedia.org/wiki/Smalltalk"