kronos (Ivan Samsonov)
- Login: kronos
- Email: ikronos2@mail.ru
- Registered on: 10/07/2009
- Last sign in: 08/04/2011
Issues
01/06/2010
-
03:13 PM
Ruby
Bug #2562 (Rejected): String#hex strange behavior
- =begin
'_a'.hex:
1.8.6, 1.8,7 rubinius 1.0 rc2 gives 10
1.9.1p243, 1.9.1p376, macuby gives 0.
Also, there is no such test in rubyspec.
=end
kronos (Ivan Samsonov)
10/07/2009
-
04:39 PM
Ruby
Bug #2184 (Closed): Blocks strange behavior
- =begin
1.8.7:
a = lambda {|x,y| x <=> y}
[1,2,3].max(&a) # => 3
1.9.1:
z = lambda {|x,y| x <=> y}
[3,2,1].max(&z) # => ArgumentError: wrong number of arguments (1 for 2)
But it works in 1.9:
z = lambda {|x| x[0] <=> ...
kronos (Ivan Samsonov)
Also available in: Atom
Loading...