From: sylvain.daubert@...
Date: 2018-06-30T09:50:22+00:00
Subject: [ruby-core:87717] [Ruby trunk Bug#14887] Array#delete_if does not	use #delete

Issue #14887 has been reported by sdaubert (Sylvain Daubert).

----------------------------------------
Bug #14887: Array#delete_if does not use #delete
https://bugs.ruby-lang.org/issues/14887

* Author: sdaubert (Sylvain Daubert)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.5.1p57
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>