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:
“If some beggar steals a bridle
hell be hung by a man whos stolen a horse.
Theres no surer justice in the world than that
which makes the rich thief hang the poor one.”
—Peire Cardenal (c. 11801272)