[#46102] [ruby-trunk - Feature #6972][Open] 特化命令opt_emptyの追加 — "Glass_saga (Masaki Matsushita)" <glass.saga@...>
5 messages
2012/09/03
[#46105] 拡張ライブラリの質問 — SASADA Koichi <ko1@...>
ささだです.
12 messages
2012/09/04
[#46110] Re: 拡張ライブラリの質問
— "NARUSE, Yui" <naruse@...>
2012/09/05
成瀬です。
[#46112] Re: 拡張ライブラリの質問
— Urabe Shyouhei <shyouhei@...>
2012/09/05
On 09/05/2012 09:52 AM, NARUSE, Yui wrote:
[#46114] Re: 拡張ライブラリの質問
— "NARUSE, Yui" <naruse@...>
2012/09/05
2012年9月5日 11:11 Urabe Shyouhei <[email protected]>:
[#46131] HaikuOS上でruby trunkのbuildが通るようになりました — Takashi Toyoshima <toyoshim@...>
こちらのMLでは初めてご挨拶させて頂きます、とよしまと申します。
7 messages
2012/09/12
[#46132] Re: HaikuOS上でruby trunkのbuildが通るようになりました
— KOSAKI Motohiro <kosaki.motohiro@...>
2012/09/12
> こちらのMLでは初めてご挨拶させて頂きます、とよしまと申します。
[#46159] [ruby-trunk - Feature #7047][Open] Add new C API: rb_newobj_with — "authorNari (Narihiro Nakamura)" <authorNari@...>
9 messages
2012/09/22
[#46162] Re: [ruby-changes:24978] nobu:r37030 (trunk): insns.def: super from at_exit — SASADA Koichi <ko1@...>
2点ほど.
4 messages
2012/09/25
[#46174] [ruby-trunk - Bug #7084][Open] RubyVM::InstructionSequence.compile("1+"*10000 + "1") causes SystemStackError or Segmentation Fault — "mrkn (Kenta Murata)" <muraken@...>
7 messages
2012/09/29
[ruby-dev:46155] [ruby-trunk - Feature #2674] RubyVM::InstructionSequence to accept IOs
From:
"ko1 (Koichi Sasada)" <redmine@...>
Date:
2012-09-21 23:54:55 UTC
List:
ruby-dev #46155
Issue #2674 has been updated by ko1 (Koichi Sasada). 前も書いたけど特に意見はないのでてきとうに入れといてもらってもいいでしょうか. ---------------------------------------- Feature #2674: RubyVM::InstructionSequence to accept IOs https://bugs.ruby-lang.org/issues/2674#change-29653 Author: shyouhei (Shyouhei Urabe) Status: Assigned Priority: Normal Assignee: ko1 (Koichi Sasada) Category: YARV Target version: 2.0.0 =begin RipperはRipper#initializeでIOを受け付けますが、ISeqはそうはなっていません。 非対称なのでISeqもIOを受け付けるようにするのはどうでしょうか。 Signed-off-by: Urabe, Shyuohei <[email protected]> --- iseq.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/iseq.c b/iseq.c index 3c957c7..2d86f5d 100644 --- a/iseq.c +++ b/iseq.c @@ -538,10 +538,14 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt) rb_compile_option_t option; const char *fn = StringValueCStr(file); int ln = NUM2INT(line); - NODE *node = parse_string(StringValue(src), fn, ln); + NODE *node; rb_thread_t *th = GET_THREAD(); make_compile_option(&option, opt); + if (rb_obj_respond_to(src, rb_intern("gets"), 0)) + node = rb_compile_file(fn, src, ln); + else + node = rb_compile_string(fn, StringValue(src), ln); if (th->base_block && th->base_block->iseq) { return rb_iseq_new_with_opt(node, th->base_block->iseq->name, file, line, th->base_block->iseq->self, -- 1.6.0.4 =end -- http://bugs.ruby-lang.org/