Skip to content

Instantly share code, notes, and snippets.

View andrea9292's full-sized avatar

ChanHong Kim andrea9292

View GitHub Profile
@andrea9292
andrea9292 / st_difficult_e4.st
Last active July 2, 2020 11:37
Smalltalk's array manipulating
| data |
data := Array new: 10.
"do something..."
data do: [ :each |
Transcript print: each; cr ]
@andrea9292
andrea9292 / st_difficult_e3.st
Created July 2, 2020 10:58
Smalltalk's if expression
((a = 3) or: [b = 5])
ifTrue: [ Transcript print: 'The results is', r printString; cr ].
@andrea9292
andrea9292 / st_hello_world.st
Created July 2, 2020 10:53
Smalltalk's Hello world!
Transcript print: 'Hello, world!'; cr.
@andrea9292
andrea9292 / st_difficult_e2.st
Last active July 2, 2020 10:46
Smalltalk's message passing
MainMemory at: 16r18FF0040 putByte: 16rFF.
@andrea9292
andrea9292 / st_difficult_e1.st
Last active July 2, 2020 09:50
Smalltalk's while....
[ fileStream atEnd ]
whileFalse:
[ someObject doSomething: (data at: i) ]
@andrea9292
andrea9292 / greetings.st
Created June 29, 2020 15:06
Dolphin Smalltalk's Greetings
| name age |
name := Prompter prompt: '이름을 입력하세요.'.
age := Prompter prompt: '나이를 입력하세요.'.
MessageBox
notify: name, '님은 ', age, '살이시네요.'.