Well you access a global with GC'ed memory. You can use something like this to 
make the compiler shut up
    
    
    var globalSeqHere: seq[int] = @[]
    
    proc foo() {.gcsafe.} =
      {.gcsafe.}:
        for i in 0..<N:
          echo globalSeqHere[i]
    

Reply via email to