[#63592] [ruby-trunk - Bug #10009] IO operation is 10x slower in multi-thread environment — normalperson@...
Issue #10009 has been updated by Eric Wong.
3 messages
2014/07/08
[#63682] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/13
[#63703] [ruby-trunk - Feature #10030] [PATCH] reduce rb_iseq_struct to 296 bytes — ko1@...
Issue #10030 has been updated by Koichi Sasada.
3 messages
2014/07/14
[#63743] [ruby-trunk - Bug #10037] Since r46798 on Solaris, "[BUG] rb_vm_get_cref: unreachable" during make — ngotogenome@...
Issue #10037 has been updated by Naohisa Goto.
3 messages
2014/07/15
[#64136] Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb — "Jeffrey 'jf' Lim" <jfs.world@...>
As per subject.
4 messages
2014/07/31
[#64138] Re: Ruby 2.1.2 (and 2.1.1 and probably others) assumes a libffi with 3 version numbers in extconf.rb
— "Jeffrey 'jf' Lim" <jfs.world@...>
2014/07/31
On Thu, Jul 31, 2014 at 6:03 PM, Jeffrey 'jf' Lim <jfs.world@gmail.com>
[ruby-core:63709] [ruby-trunk - Bug #10006] instance_exec uses incorrect binding with curried proc
From:
nobu@...
Date:
2014-07-14 08:07:17 UTC
List:
ruby-core #63709
Issue #10006 has been updated by Nobuyoshi Nakada.
It may need further consideration whether `instance_exec` should affect the wrapped proc.
----------------------------------------
Bug #10006: instance_exec uses incorrect binding with curried proc
https://bugs.ruby-lang.org/issues/10006#change-47760
* Author: John Ledbetter
* Status: Open
* Priority: Normal
* Assignee:
* Category: core
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0dev (2014-07-02 trunk 46660) [x86_64-darwin13]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
After using `Proc#curry`, `instanve_eval`/`instance_exec` does not seem to work:
~~~ruby
class Test
def test_func
140
end
end # => :test_func
p = ->(x, y) { x + y + test_func } # => #<Proc:0x007fd23b12bc80@(irb):6 (lambda)>
test = Test.new # => #<Test:0x007fd23b0f3d08>
test.instance_exec(1, 2, &p) # => 143
curried = p.curry[1] # => #<Proc:0x007fb3142be070 (lambda)>
test.instance_exec(2, &curried)
~~~
~~~
NameError: undefined local variable or method `test_func' for main:Object
from (irb):6:in `block in irb_binding'
from (irb):10:in `instance_exec'
from (irb):10
from ./bin/irb:11:in `<main>'
~~~
--
https://bugs.ruby-lang.org/