You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing collections of links, I found a difference in behaviour between removing an object and invalidating it. LnkLst/LnkSet hide invalidated links but Lst<Mixed> and Set<Mixed> do not have this capability. If a link in these collections is invalidated it becomes null and the size of the collection is not changed. Furthermore, the stored link is not a true null because operations like find_first(Mixed{}) will return not found.
While testing collections of links, I found a difference in behaviour between removing an object and invalidating it.
LnkLst
/LnkSet
hide invalidated links butLst<Mixed>
andSet<Mixed>
do not have this capability. If a link in these collections is invalidated it becomes null and the size of the collection is not changed. Furthermore, the stored link is not a true null because operations likefind_first(Mixed{})
will return not found.I think the easiest thing to do here is to remove the links from these collections instead of storing a link to the invalidated object.
The text was updated successfully, but these errors were encountered: