From: Eric Schwartz Date: 2003-01-17T08:23:35+09:00 Subject: Re: Ruby advocacy in sigs Tim Bates writes: > On Fri, 17 Jan 2003 05:32 am, Travis Whitton wrote: > > here are some examples of Ruby's object oriented nature > > 9.times {|num| puts num} # 0123456789 > > That one's wrong. Anyone who knew Ruby and actually read it would spot it, but > I though I'd point it out incase anyone blindly copied-and-pasted. > > 9.times {|num| puts num} # 999999999 Er, $ irb irb(main):001:0> 9.times {|num| print num} 012345678=> 9 > 0.upto(9) {|num| puts num} # 0123456789 That too. :) -=Eric -- Come to think of it, there are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare. -- Blair Houghton.