fork download
type
  TRecord = tuple[id: int, name: string, data: ptr char]

var empty: TRecord

empty = (id: 0, name: "Empty", data: nil)

echo(empty.id, empty.name, empty.data)
Runtime error #stdin #stdout 0.01s 2168KB
stdin
Standard input is empty
stdout
0EmptyTraceback (most recent call last)
module prog, line: 8
system.cstrToNimstr, line: 56
SIGSEGV: Illegal storage access. (Attempt to read from nil?)