Tree datatype
H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Oct 14 09:16:50 PDT 2015
On Wed, Oct 14, 2015 at 03:00:51PM +0000, Tobias Pankrath via Digitalmars-d-learn wrote:
> On Wednesday, 14 October 2015 at 14:42:31 UTC, Namal wrote:
> >Hello,
> >
> >I don't remember exactly but I think when I first saw D code there
> >was tree datatype implemented without pointers. Is it possible to
> >make a tree struct without pointers?
>
> struct Tree {
> Tree[] children;
> }
>
> That works quite well as long as you don't have to change the tree.
There are implicit pointers in Tree[].
T
--
I think the conspiracy theorists are out to get us...
More information about the Digitalmars-d-learn
mailing list