Implementing a tree with recursive Algebraic
Adam D. Ruppe
destructionator at gmail.com
Fri Jun 15 14:57:33 UTC 2018
On Friday, 15 June 2018 at 14:53:13 UTC, Kamil Koczurek wrote:
> Can I somehow fix this, or is my approach inherently flawed?
A tree there would be storing a copy of a tree which is storing a
copy of a tree... where would it end?
You can make the tree store a *pointer* to a tree though. That's
the traditional way to do it and it works here too.
More information about the Digitalmars-d-learn
mailing list