On Mercredi 20 Novembre 2002 22:57, Paul Davis wrote:
>
> const Node * add_child (const std::string &name)
> Node * add_child (Node *node)
>
> has caused dozens of stupid bugs in my code, because it doesn't make
> it clear whether the added child is copied or not (its not).
>
It's one thing I wanted to improve. For me, if not not standalone, a node
should have all it's life cycle managed by its owner : creation and deletion.
We'll try to do somethind about this soon, probably partly based on your patch
if your could post it again in the patch tracker.
Regards,
Christophe
|