Files
Nim/tests/misc/tstrdesc.nim
Adam Strzelecki e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00

15 lines
270 B
Nim

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