Thx, found it.

But gives a SIGSEGV when I write:
    
    
    type
      ast = ref object
        children: seq[ast]
      
      class = ref object of ast
    
    var t = new ast
    var c = new class
    
    t.children = newSeq[ast](1)
    t.children[0] = c
    
    
    Run

or 
    
    
    t.children.add( c )
    
    
    Run

Reply via email to