Forum: Ruby Re: Fun with ranges!

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
warrenbrown (Guest)
on 2005-11-28 18:06
(Received via mailing list)
>> Double-strange... I wonder if it's a windows thing
>> or a version thing (and if so why it only pops up
>> somewhere between 1.8.0 and 1.8.3).
> Interesting -- it seems to be a 1.8.2 thing.

    It's also an irb thing:

>ruby -ve "'a'..3"
ruby 1.8.2 (2004-12-25) [i386-mswin32]
-e:1: warning: useless use of .. in void context

irb(main):001:0> 'a'..3
=> "a"..3

    - Warren B.
This topic is locked and can not be replied to.