c9588388 ^
66b9574b ^
1 2 3 4
5
6
type cstringConstImpl {.importc: "const char*".} = cstring cstringConst* = distinct cstringConstImpl proc `[]`*(s: cstringConst; i: int): char = cstring(s)[i] proc `$`*(s: cstringConst): string {.borrow.}