Project

General

Profile

Feature #5895

rb_iter_break_value

Added by nobu (Nobuyoshi Nakada) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-dev:45131]

Description

=begin
Rubyレベルではbreakで値を返すことができますが、Cレベルでは今のところ方法がありません。

(({void rb_iter_break_value(VALUE)}))というインターフェースを提案します。
=end

iter_break.diff (2.93 KB) iter_break.diff nobu (Nobuyoshi Nakada), 01/14/2012 11:42 PM

Associated revisions

Revision 34369
Added by nobu (Nobuyoshi Nakada) over 5 years ago

  • vm.c (rb_iter_break_value): new function to break a block with the value. [Feature #5895]

Revision 34369
Added by nobu (Nobuyoshi Nakada) over 5 years ago

  • vm.c (rb_iter_break_value): new function to break a block with the value. [Feature #5895]

Revision 34369
Added by nobu (Nobuyoshi Nakada) over 5 years ago

  • vm.c (rb_iter_break_value): new function to break a block with the value. [Feature #5895]

Revision 34369
Added by nobu (Nobuyoshi Nakada) over 5 years ago

  • vm.c (rb_iter_break_value): new function to break a block with the value. [Feature #5895]

History

#2 [ruby-dev:45133] Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Category set to core
  • Assignee set to matz (Yukihiro Matsumoto)
  • Target version set to 2.0.0

#3 [ruby-dev:45150] Updated by matz (Yukihiro Matsumoto) over 5 years ago

  • Status changed from Open to Assigned
  • Assignee changed from matz (Yukihiro Matsumoto) to nobu (Nobuyoshi Nakada)

Please check in.

#4 Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r34369.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • vm.c (rb_iter_break_value): new function to break a block with the value. [Feature #5895]

Also available in: Atom PDF