<?xml version="1.0" encoding="windows-1252"?>
<node id="993632" title="Re: recursive creation of attached objects?" created="2012-09-14 00:18:07" updated="2012-09-14 00:18:07">
<type id="11">
note</type>
<author id="732669">
Marshall</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt;I'm trying to make a binary tree object which uses a recursively called new() method to create a tree n nodes deep&lt;/i&gt;&lt;/blockquote&gt;&lt;p&gt;

I would think that the basic interface is wrong. "new" should create a "virgin" tree. There should be another method to add leaves to this tree $bin_tree-&gt;add_leaf(...), perhaps? I would not use the "new" method for this purpose.</field>
<field name="root_node">
993605</field>
<field name="parent_node">
993605</field>
</data>
</node>
