이 글은 Canol Gokel님이 만든 Computer Programming using GNU Smalltalk를 읽고 정리한 것이다.
"user_input.st"
"A program to demonstrate how to demonstrate how to get input from user."
| userName |
Transcript show: 'What is your name? '.
userName := stdin nextLine.
Transcript show: ('Hello ', userName, '!'); cr.
:=
연산자는 우선 순위가 가장 낮기 때문에 stdin nextLine
이 먼저 실행되고 그 결과가 나중에 변수에 할당 된다.