since nobody knows about =dispose, rename the existing proc to deallocRef which is a much better name anyway

This commit is contained in:
araq
2026-02-12 10:49:18 +01:00
parent 2272873806
commit 9e4c22dd4e
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ proc `=destroy`(t: var Tree) {.nodestroy.} =
let x = s.pop
if x.left != nil: s.add(x.left)
if x.right != nil: s.add(x.right)
`=disposeHidden`(x)
deallocRef(x)
`=destroy`(s)
proc hasValue(self: var Tree, x: int32): bool =