Ruby Issue Tracking System: Issues
https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2010-01-06T15:13:18Z
Ruby Issue Tracking System
Redmine
Ruby master - Bug #2562 (Rejected): String#hex strange behavior
https://bugs.ruby-lang.org/issues/2562
2010-01-06T15:13:18Z
kronos (Ivan Samsonov)
ikronos2@mail.ru
<p>=begin<br>
'_a'.hex:</p>
<p>1.8.6, 1.8,7 rubinius 1.0 rc2 gives 10<br>
1.9.1p243, 1.9.1p376, macuby gives 0.</p>
<p>Also, there is no such test in rubyspec.<br>
=end</p>
Ruby master - Bug #2184 (Closed): Blocks strange behavior
https://bugs.ruby-lang.org/issues/2184
2009-10-07T16:39:12Z
kronos (Ivan Samsonov)
ikronos2@mail.ru
<p>=begin<br>
1.8.7:<br>
a = lambda {|x,y| x <=> y}<br>
[1,2,3].max(&a) # => 3</p>
<p>1.9.1:<br>
z = lambda {|x,y| x <=> y}<br>
[3,2,1].max(&z) # => ArgumentError: wrong number of arguments (1 for 2)</p>
<p>But it works in 1.9:<br>
z = lambda {|x| x[0] <=> x[1]}<br>
[3,2,1].max(&z) # => 3<br>
=end</p>