Matthew Kerwin wrote in post #1130722:
> Probably because I'd have expected g(1,2) to print
>> 1
>> [2]
>> 1
>
> and g(1,2,3,4,5) to print
>> 1
>> [2,3,4,5]
>> 1

This way you won't be able to assign to x (the optional parameter).

-- 
Posted via http://www.ruby-forum.com/.