Ok, I had an idea. As 2.0 is moving to Flash and Squeak is a language slowly fading out, we should pool our Squeak code snippets here, like a help sheet. Not tutorial after tutorial, but little 1-2 paragraph code snippets with an explanation.
Ill post an example soon...
Offline
x = y
ifTrue:[
<a>
]
ifFalse:[
<b>
].
In this example, "x" and "y" are variables and <a> and <b> are code. This runs as:
if x equals y
run <a>
otherwise (x does not equal y)
run <b>
Offline
Sprite Name = objName
Dialog Box:
DialogBoxMorph inform: 'contents' title: 'title'.
Offline