3 ms·
I think you misunderstand. The Smalltalk is this: exampleWithNumber: x "[ *wall-of-text elided* ]" | y | true & false not & (nil isNil) ifFalse
by smosher_ 12y ago
I think you misunderstand. The Smalltalk is this:
exampleWithNumber: x
"[ *wall-of-text elided* ]"
| 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
I'm talking about an Io equivalent of the "Syntax In a Postcard" link provided above, partly reproduced here for convenience. What the code does isn't so important as how much of the syntax it covers.
- protomyth 12y agoOh, sorry, yes, I got your meaning totally wrong.