looking at the generated C code this is definitely a bug

when root is instantiated 
_[both](https://forum.nim-lang.org/postActivity.xml#both) root.value and 
root.children are initialized if root.value is set to 0 after root.children has 
been set, it overwrites the seq pointer

which isn't great, but maybe that's not what const is for, i'm new here

allow me to suggest
    
    
    let root{.compiletime.} = Node...
    
    Run

which works all the ways

Reply via email to