From: sylvain.daubert@... Date: 2018-07-02T18:03:21+00:00 Subject: [ruby-core:87755] [Ruby trunk Feature#14887] Array#delete_if does not use #delete Issue #14887 has been updated by sdaubert (Sylvain Daubert). I didn't think to enumerators... Yes, #delete_at is a better choice than #delete, didn't think to it neither... But #delete and #delete_if methods seem to not call #delete_at neither. Please let me reword the proposal: may #delete and #delete_if (and #reject!) call #delete in the background to ease inheriting from Array class? ---------------------------------------- Feature #14887: Array#delete_if does not use #delete https://bugs.ruby-lang.org/issues/14887#change-72779 * Author: sdaubert (Sylvain Daubert) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- When a class inherits from Array, and its #delete methods is modified, #delete_if and #reject! do not call this method. From sources, its an internal C method which is called instead. Is there a way to modify #delete_if and #reject! to use #delete? This would ease inheriting of Array class. -- https://bugs.ruby-lang.org/ Unsubscribe: