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
this means that Swift classes that depend on Hashable such as Set will fail to locate instances that are identical but do not share the same address, such as independent copies.
A good unit test of this behavior is to make a Path, add it to a Set, make a copy using Path.copy(using: CGAffineTransform.identity) and see if Set.contains() still locates it.
The text was updated successfully, but these errors were encountered:
hfutrell
changed the title
Path and PathComponent hash and hashValue is simply pointer value
Path and PathComponent hash and hashValue is simply memory address
Jun 7, 2019
this means that Swift classes that depend on Hashable such as
Set
will fail to locate instances that are identical but do not share the same address, such as independent copies.A good unit test of this behavior is to make a Path, add it to a
Set
, make a copy usingPath.copy(using: CGAffineTransform.identity)
and see ifSet.contains()
still locates it.The text was updated successfully, but these errors were encountered: