[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:60905] [ruby-trunk - Bug #9443] Pepended methods are skipped if calling alias
From:
nagachika00@...
Date:
2014-02-20 12:12:14 UTC
List:
ruby-core #60905
Issue #9443 has been updated by Tomoyuki Chikanaga.
I think it's intended behavior. nobu, how do you think?
----------------------------------------
Bug #9443: Pepended methods are skipped if calling alias
https://bugs.ruby-lang.org/issues/9443#change-45307
* Author: Brian Cardarella
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: 2.1.0
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
I am unsure if this is related to https://bugs.ruby-lang.org/issues/7842 as that issue specifically mentions the user of "super" which my example code does not use. Anyway, here is the test to recreate:
require 'test/unit'
module A
def foo
'foo2'
end
end
class B
def foo
'foo1'
end
alias_method :bar, :foo
end
B.send(:prepend, A)
class AliasTest < Test::Unit::TestCase
def test_no_alias
assert_equal 'foo2', B.new.foo
end
def test_with_alias
assert_equal 'foo2', B.new.bar
end
end
test_with_alias fails and will only call the original "foo" method.
I have confirmed this on Ruby 2.0.0-p353 & 2.1.0
--
http://bugs.ruby-lang.org/