
It's a kind of tradition. When a programer installs a compiler of a language he doesn't know (or an IDE - an interactive environment for development) he likes to do a little program that writes "Hello World!".
This before to know anything about the language, only copying and pasting some lines of code.
You will do it now!
Open the Croquet application.
Type (or copy and paste - right click over the window and use paste(v)) this code inside the Workspace:
|win| win := SystemWindow new. "Creating a window" win setLabel: 'HELLO WORLD !'. win setWindowColor: Color blue. win openInWorldExtent: 400@200.
CODE COMMENTS:
Here you are seeing, for the first, time MANY new things (we will explain all, in details, soon):
Clicking the left button of the mouse drag the pointer over all the lines in the Workspace- they will have a green background.
Do an "accept" rightclicking over the Workspace. The list of commands appear where the pointer is. After, click : "do it" .
Our empty blue window having the title "HELLO WORLD!" appears! (I hope...)
Click in the figure of the main window (left-down) to go back to it.
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
