Project

General

Profile

Actions

Backport #8154

closed

Remove/fix rb_check_block_call

Added by marcandre (Marc-Andre Lafortune) over 11 years ago. Updated over 11 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)03/23/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0