mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-11 06:56:28 +01:00
add comment why specialized deepcopy for GWords is necessary
This commit is contained in:
parent
7f25d96038
commit
d373a0c7c2
@ -98,6 +98,7 @@ function hash(W::GWord, h::UInt)
|
||||
return xor(W.savedhash, h)
|
||||
end
|
||||
|
||||
# WARNING: Due to specialised (constant) hash function of GWords this one is actually necessary!
|
||||
function deepcopy_internal(W::T, dict::ObjectIdDict) where {T<:GWord}
|
||||
G = parent(W)
|
||||
return G(T(deepcopy(W.symbols)))
|
||||
|
Loading…
Reference in New Issue
Block a user