From: dblack@... Date: 2003-01-17T08:35:46+09:00 Subject: Re: Ruby advocacy in sigs Hi -- On Fri, 17 Jan 2003 dblack@candle.superlink.net wrote: > Hi -- > > On Fri, 17 Jan 2003, Tim Bates wrote: > > > 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 > > 0.upto(9) {|num| puts num} # 0123456789 > > Also, puts will put each digit on a different line. print will > do the above. Whoops, I spoke to soon :-) (See other responses re: behavior of 9.times.) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav