Hi there, I'm getting a compiler error: Error: cannot evaluate at compile time: arrLength Any ideas why this is happening? Thanks
var arrLength = 3
var aaa : array[arrLength,uint8]
Thanks, that works , but how about this:
arrLength = k*3
when k is a value defined at a runtime?var arrLength = foo
var aaa: seq[uint8] = newSeq[uint8](arrLength)
aaa[0] = bar1
aaa[1] = bar2