[#68137] improve semantics of manpages — "Anthony J. Bentley" <anthony@...>
Hi,
1 message
2015/02/17
[#68144] Re: Future of test suites for Ruby — Anthony Crumley <anthony.crumley@...>
FYI...
4 messages
2015/02/17
[#68343] [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault? — ruby@...
Issue #10916 has been reported by why do i need this acct just to create a bug report.
5 messages
2015/02/27
[#68373] Re: [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault?
— "Martin J. Dürst" <duerst@...>
2015/03/02
> * Author: why do i need this acct just to create a bug report
[#68358] [Ruby trunk - Bug #10902] require("enumerator") scans LOAD_PATH 2x on every invocation — ruby@...1.net
Issue #10902 has been updated by Aman Gupta.
3 messages
2015/02/28
[ruby-core:67950] [ruby-trunk - Bug #10432] wrong receiver of Binding from Method
From:
nagachika00@...
Date:
2015-02-02 13:55:07 UTC
List:
ruby-core #67950
Issue #10432 has been updated by Tomoyuki Chikanaga.
Backport changed from 2.0.0: DONE, 2.1: REQUIRED to 2.0.0: DONE, 2.1: DONE
Backported into `ruby_2_1` at r49472.
----------------------------------------
Bug #10432: wrong receiver of Binding from Method
https://bugs.ruby-lang.org/issues/10432#change-51337
* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: trunk
* Backport: 2.0.0: DONE, 2.1: DONE
----------------------------------------
Methodオブジェクトから`to_proc.binding`で作られたBindingのreceiverが、Methodオブジェクトの元になったオブジェクトではなく、Methodオブジェクトになっています。
~~~ruby
class C
def foo;end
end
o = C.new
m = o.method(:foo)
p m.receiver # #<C:0x007fcada074e58>
p m.to_proc.binding.receiver # #<Method: C#foo>
~~~
2.0, 2.1では`Binding#receiver`はありませんが、`eval("self")`で同様の結果になります。
--
https://bugs.ruby-lang.org/