From: Simon Cozens Date: 2003-02-12T02:59:51+09:00 Subject: Re: Range#length? Gavin Sinclair writes: > The reason was that a range of floats has infinite "length" > (conceptually, not literally) Unless you think of the "length" as being "the difference between one side and the other". The pencil on my desk may delimit an infinite range of positions, but the length of that range is still just shy of 4". Or you could think of Range.length as being similar to Array.length and being "the number of elements in the expansion of the range". irb(main):001:0> length = 0 => 0 irb(main):002:0> (1.0 .. 3.0).each{ length = length + 1 } => 1.0..3.0 irb(main):003:0> length => 3 -- It's a short step from using alt.binaries.warez.protocol-droids.c3p0 to Palpatine seeing a post along the lines of: "CA|\| NE1 0N Th]5 BB0ARD T3Ll M3 H0w 2 GeT KeWL S]Th P0WeRZ!?!?!?!??!?" The rest is, well, a couple more overly-hyped ILM graphics demos. -- henke@kharendaen.krall.org in ASR