[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#79029] Re: ruby/spec needs help from CRuby committers
— Benoit Daloze <eregontp@...>
2017/01/09
Thank you Shyouhei-san for your reply.
[ruby-core:78906] [Ruby trunk Bug#13087] Regression of instance_exec behaviour in ruby 2.4
From:
cardoso_tiago@...
Date:
2016-12-29 11:05:37 UTC
List:
ruby-core #78906
Issue #13087 has been updated by Tiago Cardoso.
ruby -v set to ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
----------------------------------------
Bug #13087: Regression of instance_exec behaviour in ruby 2.4
https://bugs.ruby-lang.org/issues/13087#change-62317
* Author: Tiago Cardoso
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
I've just caught up this running our test suite against the newly released ruby 2.4. Here is the repro gist:
```ruby
class A
def initialize(x)
@x = x
end
def perform
puts "performing #{@x} times"
end
end
puts "basic"
A.new(1).tap do |a|
a.instance_exec do
perform
end
end
#puts "advanced"
A.new(1).tap do |a|
a.instance_exec(A.new(3), &:perform)
end
```
The last one output "3 times in all ruby 2's except latest 2.4 .
This seems to apply the to_proc symbol to the object itself, and not the argument of instance_exec, which is a regression.
--
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>