making more instances of objects in scripting

Robert Hirschfeld hirschfeld at acm.org
Tue Dec 26 09:48:21 UTC 2000


Hi Karl,

Karl Ramberg wrote:
[...]
> > Depending on what you want to do, you may wish to put the copied
> > bullet into a player-valued instance variable of, perhaps, the
> > playfield, so that you can send it various messages to configure it
> > as needed before turning it loose in the playfield.
> 
> I can't assign the bullet's copy to the instance variable. :-(

It works if you change the instance variable's data type to Player
before.

Bye,
-Robert

___________________________________________
                          Robert Hirschfeld
                  mailto:hirschfeld at acm.org
   http://www.prakinf.tu-ilmenau.de/~hirsch





More information about the Squeak-dev mailing list