Skip to content

Instantly share code, notes, and snippets.

@nattybear
Last active January 19, 2021 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nattybear/8adbe896ce6e6000b813240de275b0ad to your computer and use it in GitHub Desktop.
Save nattybear/8adbe896ce6e6000b813240de275b0ad to your computer and use it in GitHub Desktop.

이 글은 Canol Gokel님이 만든 Computer Programming using GNU Smalltalk를 읽고 정리한 것이다.

Variables

변수는 아래와 같이 만든다.

| aVariable anotherVariable andAnotherVariable |

파이프 | 안에 선언하고 싶은 변수 이름을 띄어쓰기로 구분해서 적는다.

변수에 객체를 할당할 때는 아래와 같이 한다.

aVariableName := anObject

:=를 할당 연산자 assignment operator 라고 부른다.

Computer Programming with GNU Smalltalk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment