Visualize a tree: Difference between revisions

Updated D entry
(Updated D entry)
Line 150:
void main () {
static N(T)(T value_, BTNode!T* left_=null, BTNode!T* right_=null) {
//return new BTNode!T(value_, left_, right_); // not supported
auto t = new BTNode!T;
*t = BTNode!T(value_, left_, right_);
return t;
}