Smalltalk - Hello World Example

Hello World Example

In the following code, the message "show:" is sent to the object "Transcript" with the String literal 'Hello, world!' as its argument. Invocation of the "show:" method causes the characters of its argument (the String literal 'Hello, world!') to be displayed in the transcript ("terminal") window.

Transcript show: 'Hello, world!'.

Note that a Transcript window would need to be open in order to see the results of this example.

Read more about this topic:  Smalltalk

Famous quotes containing the word world:

    A great world leader is gone. Liberty loving people around the globe are sad tonight. We are strengthened in the thought of President Roosevelt’s work for little people everywhere.
    Lyndon Baines Johnson (1908–1973)