Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
CommandShell exercise
Last updated at 3:11 pm UTC on 8 March 2018

Exercise for the Reader:


Which one of the following five command lines will generate
an error, and why?
  1. $ stdout nextPutAll: 'hello world'
  2. $ stdout nextPutAll: 'hello world'; cr
  3. $ stdout nextPutAll: 'hello world'!
  4. $ stdout nextPutAll: 'hello world'; cr!
  5. $ stdout nextPutAll: 'hello world'!; stdout cr!


Answer