Professional Documents
Culture Documents
Doing Some Simple Things in Smalltalk
Doing Some Simple Things in Smalltalk
go there
This is chapter 2 of the Squeak Tutorial < previous chapter | next chapter >
Now run the code: Select it with the mouse Print the result: right click on the selection, and choose "Print it" You an guess what the expected result is, can't you? You actually executed a small program! This works not only in a workspace but nearly everywhere in Smalltalk where you can edit some text: see a small snippet of code, select it, "print it" (keyboard shortcut: cmd-p) and look at the result. Now for something more interesting: