Next: , Previous: Starting Smalltalk, Up: Getting started

6.1.2 Saying hello

An initial exercise is to make Smalltalk say “hello” to you. Type in the following line (printNl is a upper case N and a lower case L):

        'Hello, world' printNl

The system then prints back 'Hello, world' to you. It prints it twice, the first time because you asked to print and the second time because the snipped evaluated to the 'Hello, world' string.1


[1] You can also have the system print out a lot of statistics which provide information on the performance of the underlying Smalltalk engine. You can enable them by starting Smalltalk as:

        $ gst -V