From: Kyle Schmitt Date: 2007-12-12T03:28:43+09:00 Subject: Re: Creating multiple objects in loops Maybe it'll help if you tell us what you're trying to do... if you just want an array full of unique objects of some type, something like this may be what you want. whatever = Array.new(10){|i| i=Peas.new() } --Kyle PS #yes, it's tempting to skim the Array docs, and write whatever = Array.new(10,Peas.new() #BUT that would be an array of length ten, each element pointing to the same pea, #Not really what you want :)