이 글은 Canol Gokel님이 만든 Computer Programming using GNU Smalltalk를 읽고 정리한 것이다.
변수는 아래와 같이 만든다.
| aVariable anotherVariable andAnotherVariable |
파이프 |
안에 선언하고 싶은 변수 이름을 띄어쓰기로 구분해서 적는다.
변수에 객체를 할당할 때는 아래와 같이 한다.
aVariableName := anObject
:=
를 할당 연산자 assignment operator 라고 부른다.