[#74190] [Ruby trunk Feature#12134] Comparison between `true` and `false` — duerst@...
SXNzdWUgIzEyMTM0IGhhcyBiZWVuIHVwZGF0ZWQgYnkgTWFydGluIETDvHJzdC4KCgpUc3V5b3No
3 messages
2016/03/07
[#74269] Type systems for Ruby — Rob Blanco <ml@...>
Dear ruby-core,
5 messages
2016/03/10
[#74395] [Ruby trunk Feature#12142] Hash tables with open addressing — shyouhei@...
Issue #12142 has been updated by Shyouhei Urabe.
3 messages
2016/03/17
[ruby-core:74326] [Ruby trunk Bug#12176] method equality of aliased methods breakage on 2.3
From:
shyouhei@...
Date:
2016-03-15 04:57:44 UTC
List:
ruby-core #74326
Issue #12176 has been reported by Shyouhei Urabe.
----------------------------------------
Bug #12176: method equality of aliased methods breakage on 2.3
https://bugs.ruby-lang.org/issues/12176
* Author: Shyouhei Urabe
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Is this intentional?
~~~ruby
zsh % cat tmp.rb
module Foo
def foo
return __callee__
end
end
class Bar
include Foo
alias bar foo
end
b = Bar.new
p b.foo
p b.bar
p(b.method(:foo) == b.method(:bar))
zsh % ruby22 -v tmp.rb
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin15]
:foo
:bar
true
zsh % ruby23 -v tmp.rb
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
:foo
:foo
false
~~~
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>