smalltalk.sample 308 Bytes
Newer Older
Sergey's avatar
Sergey committed
1 2 3 4 5 6 7 8 9 10 11
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"