tstrdesc.nim 268 B

123456789101112131415
  1. var
  2. x: array[0..2, int]
  3. x = [0, 1, 2]
  4. type
  5. TStringDesc {.final.} = object
  6. len, space: int # len and space without counting the terminating zero
  7. data: array[0..0, char] # for the '\0' character
  8. var
  9. emptyString {.exportc: "emptyString".}: TStringDesc