[#66678] [ruby-trunk - Feature #10481] Add "if" and "unless" clauses to rescue statements — alex@...
Issue #10481 has been updated by Alex Boyd.
3 messages
2014/12/04
[#66762] Re: [ruby-changes:36667] normal:r48748 (trunk): struct: avoid all O(n) behavior on access — Tanaka Akira <akr@...>
2014-12-10 0:44 GMT+09:00 normal <ko1@atdot.net>:
3 messages
2014/12/10
[#66851] [ruby-trunk - Feature #10585] struct: speedup struct.attr = v for first 10 attributes and struct[:attr] for big structs — funny.falcon@...
Issue #10585 has been updated by Yura Sokolov.
3 messages
2014/12/15
[#67126] Ruby 2.2.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 2.2.0.
8 messages
2014/12/25
[#67128] Re: Ruby 2.2.0 Released
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2014/12/25
I can't install it in any of our Ubuntu servers using rbenv:
[#67129] Re: Ruby 2.2.0 Released
— SHIBATA Hiroshi <shibata.hiroshi@...>
2014/12/25
> I can't install it in any of our Ubuntu servers using rbenv:
[ruby-core:67031] [ruby-trunk - Bug #7995] [Closed] RubyVM::InstructionSequence to_a not working for blocks
From:
s.wanabe@...
Date:
2014-12-22 03:10:00 UTC
List:
ruby-core #67031
Issue #7995 has been updated by _ wanabe.
Status changed from Assigned to Closed
Fixed at r44720, #9455.
----------------------------------------
Bug #7995: RubyVM::InstructionSequence to_a not working for blocks
https://bugs.ruby-lang.org/issues/7995#change-50557
* Author: Michael Meltner
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* Category: YARV
* Target version: current: 2.2.0
* ruby -v: -
* Backport:
----------------------------------------
Hello,
I try to convert this code into an array via RubyVM::InstructionSequence:
-----
def test
yield
end
test do
puts "hi there"
end
-----
then read it back via "iseq_s_load".
This causes an error that there is no block defined:
<compiled>:in `test': no block given (yield) (LocalJumpError)
from <compiled>:in `<compiled>'
I assume there is a bug in iseq.c, line 1778:
rb_hash_aset(e, ID2SYM(rb_intern("blockptr")), ci->blockiseq ? seq_data_to_ary(ci->blockiseq) : Qnil);
as the corresponding line in compile.c is this:
VALUE vblock = rb_hash_aref(op, ID2SYM(rb_intern("block")));
so is the symbol name mixed up between "block" and "blockptr" ?
- Michael
--
https://bugs.ruby-lang.org/