I'm trying to make a binary tree object which uses a recursively called new() method to create a tree n nodes deep
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->add_leaf(...), perhaps? I would not use the "new" method for this purpose.
In reply to Re: recursive creation of attached objects?
by Marshall
in thread recursive creation of attached objects?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |