This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-10 20:27:28

plh256
New Scratcher
Registered: 2011-11-05
Posts: 1

item limits in lists

To me this is a bug and I cannot find it in the documentation as a feature. You can quite happily write:

replace item -1 of list_name with thing

It does not appear to do anything but it does not complain either. I would have expected an error message or something. (If you divide by 0 you get a red line round the code for example.)

You can replace the -1 by 0 or by a variable with an out of range value (as I did) and still get no error.

Peter

Offline

 

Board footer