mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-09-18 09:32:59 +02:00
deepcopy_internal override to protect ParentObject from duplication
This commit is contained in:
parent
a3db7ab92c
commit
f9ccff01a8
@ -60,7 +60,12 @@ function hash(W::GWord, h::UInt)
|
|||||||
W.modified && reduce!(W)
|
W.modified && reduce!(W)
|
||||||
return W.savedhash $ h
|
return W.savedhash $ h
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function deepcopy_internal{T<:GSymbol}(W::GWord{T}, dict::ObjectIdDict)
|
||||||
|
G = parent(W)
|
||||||
|
return G(GWord{T}(deepcopy(W.symbols)))
|
||||||
end
|
end
|
||||||
|
|
||||||
length(W::GWord) = sum([length(s) for s in W.symbols])
|
length(W::GWord) = sum([length(s) for s in W.symbols])
|
||||||
|
|
||||||
function free_reduce!(W::GWord)
|
function free_reduce!(W::GWord)
|
||||||
|
Loading…
Reference in New Issue
Block a user