do: Question?

Jimmie Houchin jhouchin at texoma.net
Tue Jul 9 04:54:09 UTC 2002


Hi,

Thanks for the education. I had tried a variety of different block 
contents and all were getting the same error. Now I know. According to 
compiler I was doing the same error. :)


Jimmie Houchin


Andreas Raab wrote:
> 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