or
    
    
    proc genArray(i, j: int) : seq[cstring] =
      result = newSeqOfCap[cstring](j - i + 1)
      for k in i .. j:
        let s = $k
        GC_ref(s)
        result.add(s.cstring)
    

Reply via email to