From: Alan Chen Date: 2002-11-23T02:32:43+09:00 Subject: Re: Allow *array expansion anywhere in list On Sat, Nov 23, 2002 at 01:35:38AM +0900, Carlos wrote: > # now I have a 'line' method, from an external library, defined as: > # def line x1, y1, x2, y2, attrs > > line(*p1, *p2, attrs) # parse error > == > > Isn't this more clear and natural and mantainable and easy than > > line(p1.x, p1.y, p2.x, p2.y, attrs) If you believe so, why not def my_line(p1, p2, attrs) line(p1.x, p1.y, p2.x, p2.y, attrs) end -- Alan Chen Digikata Computing http://digikata.com