Iterator methods panic after copy #103
Labels
No labels
bug
discussion
documentation
duplicate
ignore
new feature
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
golibs/gms-gods#103
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Copying a
treeset.Iteratorwill result in panics whentreeset.Iterator.Value()is called. I suspect the same holds for allIterate()methods.Because
Iteratoris stateful, I suggest returning an*Iteratorfrom allIterate()methods.@lthibault excuse the late replay, could you provide a sample code that triggers this behaviour?