From: dblack@... Date: 2006-09-18T18:00:24+09:00 Subject: Re: Splat, #to_ary and #to_a Hi -- On Mon, 18 Sep 2006, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Splat, #to_ary and #to_a" > on Mon, 18 Sep 2006 12:28:18 +0900, "Rick DeNatale" > writes: > > |Just what is the fix in 1.9. > | > |Are you saying that > |[*"foo\nbar"] #=> ["foo\nbar"] > |in 1.9? > > Yes. And if you are curious you can try it by yourself. > > |How about: > |[*(1..4)] > |which in 1.8.x produces [1, 2, 3, 4] > > Currently, > > [1..4] > > This may be an issue. I've always thought it was convenient to have [*x] do the expanding on x (including strings and ranges). But if it's going to disappear, I think it should disappear consistently, so that * doesn't start having a totally different meaning depending on the operand's class. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org