On 2/16/07, Kyle Schmitt <kyleaschmitt / gmail.com> wrote:
> Ahh.  Any clue as to what the rational on making Array.new work that was was?
> I can think of situations where I'd want to use the same object over
> and over, but more situations where I'd want a new object in each one.

Yes.

  bitvector = Array.new(32, 0)

If you need complex handling, as others have pointed out, use the block form.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca