cdome Mon, 12 Feb 2018 12:30:03 +0100
Should be just fine.
Also, you code can potentially benefit from a shortcut inside a proc: template d: auto = heap.data