From: Kevin Smith Date: 2001-01-03T14:22:26+09:00 Subject: [ruby-talk:8556] Re: initializing objects tonys@myspleenklug.on.ca wrote: > >i guess i can live with 26 lines initializing each planet...but i think that >really needs to be addressed in ruby. i'm envisioning a multiplayer >server/client version where i won't have just 26 planets...more like 1000. > >is there NO way to initialize a large number of objects in ruby? Dave's answer to this was right on the money. And one of the big benefits of the array approach is that you can add and remove planets at will, while the game is running. Perhaps that's not a big deal for planets, but it sure is for ships. Perhaps if you give us a short example in some other language of what you're trying to do, we could provide a Ruby way to do it in roughly the same way. Kevin