do: Question?

Andreas Raab Andreas.Raab at gmx.de
Tue Jul 9 02:36:58 UTC 2002


Jimmie,

> I do not understand what is happening to cause this error.

Just madness on the side of the compiler. You forgot to insert the index
loop variable which is *required*. E.g.,

	1 to: 10 do:["nothing"].

will fail but

	1 to: 10 do:[:index| "nothing"].

will work.

Cheers,
  - Andreas




More information about the Squeak-dev mailing list