Fixed add_children to actually add children correctly and only do the ambiguity at the right time. Still have the looking in map with non-existant key problem, but it is actually parsing nicely.
This commit is contained in:
@@ -20,6 +20,9 @@ obj tree<T> (Object) {
|
||||
destruct()
|
||||
copy_construct(&other)
|
||||
}
|
||||
fun operator==<U>(other: ref tree<U>):bool {
|
||||
return data == other.data
|
||||
}
|
||||
fun destruct() {
|
||||
mem::maybe_destruct(&data)
|
||||
children.destruct()
|
||||
|
||||
Reference in New Issue
Block a user