From: Lionel Thiry Date: 2005-12-01T21:17:32+09:00 Subject: Re: require! David A. Black a écrit : > Hi -- > > On Thu, 1 Dec 2005, Lionel Thiry wrote: > >> Trans a �crit : >> >>> Hi Ross, actually as Florian recently taught me, *obj works for any >>> object with #to_ary defined --if that is what you mean. >>> >>> T. >>> >> >> AFAIK may change in ruby2. > > > As Gary says it's actually to_a, not to_ary -- and I think it will > probably still work in 2.x, because Enumerable#to_a is explicitly > defined (not the soon-to-disappear default to_a for all objects). > > > David > Mmm, I remember Matz wonders about possible changes in the way the array expansion operator * could work. He wonders if he should differentiate array [a,b,c] and list a,b,c or not. Until decided, I keep in mind that the way *args works may change in ruby2. -- Lionel Thiry Personal web site: http://users.skynet.be/lthiry/