ParadoxMachine wrote:
No, they were supposed to appear as raw text (using raw tags). At least they
do for me.
Anyway, here's the code:
a := 0.
b := 1.
10 timesRepeat: [
a timesRepeat: [b = b*2].
Transcript show: '2^a = '.
Transcript show: b ;cr.
a = a+1.
b = 1].
And this is the result:
2^a = 1
UndefinedObject>>DoIt (a is Undeclared)
UndefinedObject>>DoIt (b is Undeclared)
UndefinedObject>>DoIt (a is Undeclared)
UndefinedObject>>DoIt (b is Undeclared)
UndefinedObject>>DoIt (b is Undeclared)
UndefinedObject>>DoIt (b is Undeclared)
UndefinedObject>>DoIt (a is Undeclared)
UndefinedObject>>DoIt (a is Undeclared)
UndefinedObject>>DoIt (b is Undeclared)
--
View this message in context:
http://forum.world.st/apparently-Undeclared-variables-tp4761926p4761938.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
your last two assignments are "=" and not ":=" ?
cheers -ben
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners