This project is closed and read-only.
Backport #8345
closed
Method#to_proc assumes lambda returns a Proc
Added by Anonymous over 13 years ago. Updated over 13 years ago.
Updated by Anonymous over 13 years ago
Actions
#1
[ruby-core:54688]
Updated by nobu (Nobuyoshi Nakada) over 13 years ago
Actions
#2
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r40528.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
proc.c: frozen core methods
- proc.c (mproc, mlambda): use frozen core methods instead of plain
global methods, so that methods cannot be overridden.
[ruby-core:54687] [Bug #8345] - vm.c (Init_VM): define proc and lambda on the frozen core object.
Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago
Actions
#3
- Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: REQUIRED, 2.0.0: REQUIRED
This issue seems like happen in 1.9.3p433 and 2.0.0p222.
Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago
Actions
#4
- Tracker changed from Bug to Backport
- Project changed from Ruby to 15
- Status changed from Closed to Assigned
- Assignee changed from Anonymous to nagachika (Tomoyuki Chikanaga)
Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago
Actions
#5
- Status changed from Assigned to Closed
This issue was solved with changeset r41394.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 40525,40526,40528,40530: [Backport #8345]
proc.c: remove unnecessary static function
* proc.c (proc_lambda): remove and use rb_block_lambda directly
instead.
* include/ruby/intern.h (rb_block_lambda): add declaration instead of
deprecated rb_f_lambda.
* proc.c (mproc, mlambda): use frozen core methods instead of plain
global methods, so that methods cannot be overridden.
[ruby-core:54687] [Bug #8345]
* vm.c (Init_VM): define proc and lambda on the frozen core object.
* defs/id.def (predefined): add "idProc".
* proc.c (mnew, mproc, mlambda): use predefined IDs.
* vm.c (Init_VM): ditto.
Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago
Actions
#6
- Project changed from 15 to 13
- Status changed from Closed to Assigned
- Assignee changed from nagachika (Tomoyuki Chikanaga) to usa (Usaku NAKAMURA)
Updated by usa (Usaku NAKAMURA) over 13 years ago
Actions
#7
- Status changed from Assigned to Closed
This issue was solved with changeset r41649.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
merge revision(s) 40525,40526,40528,40530: [Backport #8345]
proc.c: remove unnecessary static function
* proc.c (proc_lambda): remove and use rb_block_lambda directly
instead.
* include/ruby/intern.h (rb_block_lambda): add declaration instead of
deprecated rb_f_lambda.
* proc.c (mproc, mlambda): use frozen core methods instead of plain
global methods, so that methods cannot be overridden.
[ruby-core:54687] [Bug #8345]
* vm.c (Init_VM): define proc and lambda on the frozen core object.
* defs/id.def (predefined): add "idProc".
* proc.c (mnew, mproc, mlambda): use predefined IDs.
* vm.c (Init_VM): ditto.