Representation of a tree

Igor via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 4 12:13:27 PDT 2014


Hello,
I want to represent a tree node in D. I think if struct works for 
it:
struct Node {
   Node* l, r;
}
But can I use pointers? Will GC treat them properly? I'm leaning 
to think it should be okay.


More information about the Digitalmars-d mailing list