From: Rick DeNatale Date: 2007-11-12T00:10:33+09:00 Subject: Re: ruby wish-list On Nov 11, 2007 1:13 AM, Roger Pack wrote: > >> I wish... that Range.to_a wouldn't become obselete, as it seems quite useful > >> in rails! > > > > 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' shadowfax:~/Documents/terralien/dltsolutions/enrollnow rick$ ruby1.9 -we 'p (1..3).to_a' -e:1: warning: (...) interpreted as grouped expression [1, 2, 3] shadowfax:~/Documents/terralien/dltsolutions/enrollnow rick$ ruby1.9 -we 'p((1..3).to_a)' [1, 2, 3] -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/