Project

General

Profile

This project is closed and read-only.

Actions

Backport #8154

closed

Remove/fix rb_check_block_call

Backport #8154: Remove/fix rb_check_block_call

Added by marcandre (Marc-Andre Lafortune) over 13 years ago. Updated over 13 years ago.


Description

Looking back in the history, I found that commit r36989 (abeedb0875f3) introduced rb_check_block_call, but (1) it uses obsolete rb_iterate and (2) it created a strange bug [#8153].

In r39877, I used rb_respond_to + rb_block_call instead. This way Array#zip is similar to Enumerable#zip and Lazy#zip.

rb_check_block_call should either be removed or fixed to avoid r36989.


Related issues 1 (0 open1 closed)

Related to Backport200 - Backport #8153: Problems with Enumerable#zip caused by overriding Object#respond_to?Closednagachika (Tomoyuki Chikanaga)Actions
Actions

Also available in: PDF Atom