Untitled
proc test =
let line = ["ABC", "DEF"]
let (a, b) = (line[0], line[1])
let strPtr = unsafeAddr(a[0])
var str = cast[ptr array[3, char]](strPtr)
str[] = ['G','H','I']
echo a
echo line[0]
test()INFO
proc test =
let line = ["ABC", "DEF"]
let (a, b) = (line[0], line[1])
let strPtr = unsafeAddr(a[0])
var str = cast[ptr array[3, char]](strPtr)
str[] = ['G','H','I']
echo a
echo line[0]
test()