hi fellows.
Let x = 100
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Hi Hans,
|x|
x := 100.
|x| defines a temp x. | x y | defines both x and y as temps.
The assignment operator is :=
If you use = or == you are asking for a comparison of x and 100.
All the best,
Ron Teitelbaum
-Original Message-
From: beginners-boun...@lists.squeakfoundation.org
Hans,
Here's a complete program which will print the numbers from 1 to 10 on the
console (each on its own line):
| index |
index := 0.
[index 10]
whileTrue:
[index := index + 1.
Transcript
show: index printString;
cr]
On Thu, Oct 30, 2014 at 4:58