Etoys: using holders as arrays

Karl Ramberg karl.ramberg at chello.se
Wed Aug 27 18:54:41 UTC 2003



John Voiklis wrote:
> 
> Hello,
> 
> I started work on a tutorial for how to use a holder as an array. The tutorial is very basic: the reader is asked to fill the holder with several objects and then create a script that iterates through the collection and assigns the objects it finds to variables. I had this working once upon a time with a holder full of numbers--at least so I believe; except for doing frame animation, though, I can't get this to work no matter what I put in the holder. Can anyone help...
> 
> Again, I am not looking for anything in-depth, just a short explanation and example.

Holders can only hold players. 
If you want to store a number you would have to wrap it in a player
instance variable for example.

Karl



More information about the Squeak-dev mailing list