Yes, if the strings used are stored somewhere as `string` at the time they are
checked, the output is normal, e.g.:
var s: seq[string]
proc genArray(i, j: int) : seq[cstring] =
result = newSeqOfCap[cstring](j - i + 1)
s = newSeqOfCap[string](j - i + 1)
for k in i .. j:
s.add $k
result.add((s[k-i]).cstring)
- My stupid usage of cstrings Stefan_Salewski
- Re: My stupid usage of cstrings LeuGim
- Re: My stupid usage of cstrings Stefan_Salewski
