From: Andre Nathan Date: 2007-12-31T22:50:00+09:00 Subject: Re: Using "sort!" in a C extension (1.9 problem) On Mon, 2007-12-31 at 13:10 +0900, Ken Bloom wrote: > Was this a bug that needs to be patched, or an intentional change from > Ruby 1.8 to Ruby 1.9? I thought it was the later. The patch doesn't seem to change the new behaviour: $ irb1.9 irb(main):001:0> [1,2,3].sort{|x,y| p [x,y]; 1} [1, 2] [2, 3] => [3, 2, 1] irb(main):002:0> [1,2,3].sort{|x| p [x]; 1} [1] [2] => [3, 2, 1] irb(main):003:0> [1,2,3].sort{|*x| p [x]; 1} [[1, 2]] [[2, 3]] => [3, 2, 1] Andre