> I think that's _way_ beyond the scope of the recipe. > > Yes, it assumes that the new tree does not have an old parent > from which it should be removed.
Yes, I recognise that it makes the recipe more complex. I'm a newbie for Moose. I was incorporating the recipe for a small component I was developing. I had simply omitted from my thinking the part of setting the node, only accessing. In part since accessing did the creation, there was no need to set. But also in part because setting must be more complex. IMO regardless, even if it makes the recipe more complex, a recipe should be _correct_ which this is not. Furthermore the test script never tests this setting condition. It should be explicit about the pre/post conditions of the node being set, or make the setting condition correct. Thank you ! for helping me discover the errors in my thinking. Best regards, ..Otto