fork download
  1. type
  2. TRecord = tuple[id: int, name: string, data: ptr char]
  3.  
  4. var empty: TRecord
  5.  
  6. empty = (id: 0, name: "Empty", data: nil)
  7.  
  8. echo(empty.id, empty.name, empty.data)
  9.  
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?)