From: Dave Thomas Date: 2001-01-03T14:10:02+09:00 Subject: [ruby-talk:8555] Re: initializing objects tonys@myspleenklug.on.ca (tony summerfelt) writes: > is there NO way to initialize a large number of objects in ruby? planets = Array.new(1000) planets.size.times do |i| planets[i] = Planet.new end I'm still very confused about what you're trying to do. You have a large number of these planet objects. Why not just store them in a hash or an array. If you need to access them by name, then a hash would be better: planets = Hash.new planets['earth'] = Planet.new(....) I can't imagine _any_ program needing 1000 variables to point to 1000 different objects of the same class. Dave