[ruby-core:93534] [Ruby master Bug#15984] deleting from a collection while iterating on it

From: ao.helal@...
Date: 2019-07-04 07:58:09 UTC
List: ruby-core #93534
Issue #15984 has been reported by aothelal (Abdelrahman Othman Helal).

----------------------------------------
Bug #15984: deleting from a collection while iterating on it
https://bugs.ruby-lang.org/issues/15984

* Author: aothelal (Abdelrahman Othman Helal)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.6.3
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
If you tried to delete from a collection while iterating on it Ruby will allow you to do this flawlessly. This generates a wrong output collection after doing this action. An exception should be thrown to disallow this to be done.  



-- 
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>

In This Thread

Prev Next