From: 7stud -- Date: 2011-03-24T11:13:15+09:00 Subject: Re: iteration question From the docs: Array.new(size=0, obj=nil) -------------------------- Returns a new array. In the first form, the new array is empty. In the second it is created with size copies of obj (that is, size references to the same obj). -------------------------- See the last part in parentheses? It's a stupid *feature* of ruby, and that behaviour must have been added to the language by Matz to trip up beginners. -- Posted via http://www.ruby-forum.com/.