From: Roger Pack Date: 2008-08-28T04:01:54+09:00 Subject: Re: ruby wish-list >> > Assuming you mean Range#to_a (i.e. an instance rather that class >> > method) I don't think it's becoming obsolete. >> >> It throws warnings as deprecated, for some reason. > > I don't think so: > > shadowfax:~/Documents/terralien/dltsolutions/enrollnow rick$ ruby1.9 -v > ruby 1.9.0 (2007-10-25 patchlevel 0) [i686-darwin8.10.2] > shadowfax:~/Documents/terralien/dltsolutions/enrollnow rick$ ruby1.9 > -we '(1..3).to_a' Ahh I get it. Odd >> S.find 1..6.to_a (irb):19: warning: default `to_a' will be obsolete I was confusing that for >> S.find (1..6).to_a which works as expected. Thanks for helping me figure that out. I have no idea why 1..6.to_a doesn't raise an exception. Oh well. Thanks. -=R -- Posted via http://www.ruby-forum.com/.