I can report patch is functional and seems to be working also on current ruby_2_2 branch [ruby 2.2.3p147 (2015-07-04 revision 51143)] . What about pushing commit also to this branch ? More testing needed ? The speed-up is drastic, te...dunric (David Unric)
If I am not mistaken, even latest Ruby 2.2 selects keyword arguments as the last method's argument and of Hash type. Let's imagine an example where both simple and keyword optional arguments are used: ~~~ruby def call_multiargs(me...dunric (David Unric)
By my subjective opinion I don't find this a bug but a feature. > Consider this: > ... Here you define a method without a (keyword) argument placeholder so it does not expect a Hash argument, which is effectively used to pass keyword...dunric (David Unric)
Wow, that was fast ! I've been stuck at `rb_class_path_cached` from `variable.c line #281` failing to look up a class_path. Glad it would be fixed in 2.2 . Good job. Take care.dunric (David Unric)
I'm sorry about code formatting. Bellow is a fixed version: ~~~ruby require 'objspace' class A def foo ObjectSpace::trace_object_allocations do obj = Object.new p ObjectSpace::allocation_class_path(obj) # "A"...dunric (David Unric)
Possible bug in `ObjectSpace::allocation_class_path` returning `nil` instead of expected class name: ~~~ruby require 'objspace' class A def foo ObjectSpace::trace_object_allocations do obj = Object.new p Obje...dunric (David Unric)
=begin Optional argument `prec' to BigDecimal#power does not alter result precision: b=BigDecimal.new("1.034482758620689655172413793103448275862068965517241379310344827586206896551724" => #<BigDecimal:807a50,'0.1034482758 62068965...dunric (David Unric)
=begin There seems to be bug in csv.rb module. If you would like to use some special characters like (({|})) as a quote_char (passed as a parameter to CSV methods like read), program terminates with (({CSV::MalformedCSVError: Missing or...dunric (David Unric)
=begin By the current documentation, Object#extend method has to (only) add instance methods of a module given as a parameter. In the following example, the class ((*C*)) is extended with module ((*M*)). By ((*class_variables*)) metho...dunric (David Unric)
=begin By the current documentation, (({Object#extend})) method has to (only) add instance methods of a module given as a parameter. In the following example, the class ((|C|)) is extended with module ((|M|)). By (({class_variables}))...dunric (David Unric)