Skip to content

Instantly share code, notes, and snippets.

@nattybear
Last active January 17, 2021 13:18
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/481b76a39aad48a9d6056c3347bd457f to your computer and use it in GitHub Desktop.
Save nattybear/481b76a39aad48a9d6056c3347bd457f to your computer and use it in GitHub Desktop.

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

Another Way to Display Output on Terminal

문자열 객체에 printNl 메세지를 보내서 출력을 하는 방법도 있지만 Transcript라는 표준 출력 객체에 show: 라는 메세지를 보내서 출력을 하는 방법도 있다.

st> Transcript show: 'Hello World!'
Hello World!

printNl과 아래와 같은 점이 다르다.

  • 작은 따옴표가 출력에 포함되지 않는다.
  • 평가한 객체가 화면에 출력되지 않는다.
  • 개행이 출력되지 않는다.

Computer Programming with GNU Smalltalk

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