[ruby-core:93536] [Ruby master Bug#15984] deleting from a collection while iterating on it
From:
hanmac@...
Date:
2019-07-04 09:38:20 UTC
List:
ruby-core #93536
Issue #15984 has been updated by Hanmac (Hans Mackowiak). that totally depends on how you interate over the collection. if you do it right, ruby has no problem with that ---------------------------------------- Bug #15984: deleting from a collection while iterating on it https://bugs.ruby-lang.org/issues/15984#change-79099 * 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>