General

Profile

joshuadreed (Josh Reed)

  • Login: joshuadreed
  • Registered on: 03/04/2021
  • Last connection: 03/16/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/16/2021

06:47 PM Ruby master Bug #17725: Prepend breaks ability to override optimized methods
One more detail.
``` ruby
module Dummy; end
class String
alias_method(:old_plus, :+)
def + other
puts 'blah...
joshuadreed (Josh Reed)
06:15 PM Ruby master Bug #17725: Prepend breaks ability to override optimized methods
So, I set out to test my hypothesis regarding refinements. I've never used refinements prior to this, so it's still p... joshuadreed (Josh Reed)
05:34 PM Ruby master Bug #17725: Prepend breaks ability to override optimized methods

``` ruby
module Dummy; end
class Foo
def ten
10
end
end
Foo.prepend(Dummy)
class Foo
...
joshuadreed (Josh Reed)
05:26 PM Ruby master Bug #17725 (Closed): Prepend breaks ability to override optimized methods
Prepending any module to `String` and `Hash` (and possibly other or all classes?) blocks the ability to `alias`
A...
joshuadreed (Josh Reed)

Also available in: Atom