At 14:53 31/08/2010, Lukas Renggli wrote:
Why do you think this is a problem?
It seems that the children keep pointing to their parent, which is
the removed structure. I'd expect the children to be removed too,
actually starting from the leaf nodes. So something like (not tested):
PRRemoveCommand >> removeWithChildren: aStructure
aStructure hasChildren ifTrue:
[ aStructure enumerator contents do: [:aChild | self
removeWithChildren: aChild ]].
PRRemoveCommand >> doExeccute
self removeWithChildren: self structure
Does this makes sense?