Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
15
tests/tstrdesc.nim
Executable file
15
tests/tstrdesc.nim
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
var
|
||||
x: array [0..2, int]
|
||||
|
||||
x = [0, 1, 2]
|
||||
|
||||
type
|
||||
TStringDesc = record
|
||||
len, space: int # len and space without counting the terminating zero
|
||||
data: array [0..0, char] # for the '\0' character
|
||||
|
||||
var
|
||||
emptyString {.export: "emptyString".}: TStringDesc = (
|
||||
len: 0, space: 0, data: ['\0']
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue