When I try to create a type with a type as a field, how do I make the inner type initialized from within the type declaration? For instance, in the following code segment, let's say I have something like "a.bst = New bst". For some reason I still have to say "a\root.node = New node" because the bst type isn't creating an instance of the node type like I want it to. How would I do this? I'm trying to make a binary search tree.
Type node
Field value = 0
Field leftNode.node = New node
Field rightNode.node = New node
End Type
Type bst
Field root.node = New node
End Type
Type node
Field value = 0
Field leftNode.node = New node
Field rightNode.node = New node
End Type
Type bst
Field root.node = New node
End Type