From: Chad Perrin Date: 2012-07-04T02:11:59+09:00 Subject: Re: ruby performance On Tue, Jul 03, 2012 at 12:19:52PM +0900, Dan Connelly wrote: > botp wrote in post #1067101: > > This is a slight cheat, since my examples had addition independent of > loop control. But nevertheless if I do the following: > > i, j = 0,0 > while j < 10_000_000 > i+=1 > j+=1 > end > puts "i = #{i}" Why does j even exist in this? i = 0 while j < 10_000_000 i += 1 end puts "i = #{i}" Is the j there in some attempt to simulate a case where the loop increment variable is not redundant with the operations taking place within the loop? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]