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]
- Compiling with --gc:none produces unexpected prohibition jzakiya
- Re: Compiling with --gc:none produces unexpected proh... Stefan_Salewski
- Re: Compiling with --gc:none produces unexpected ... Araq
