Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

Nim

Visibility

unlisted

Author

legacy-anonymous

Created

2017-09-30T09:36:30Z

Updated

2017-09-30T09:36:30Z

proc test =
  let line = ["ABC", "DEF"]
  let (a, b) = (line[0], line[1])
  
  let strPtr = unsafeAddr(a[0])
  var str = cast[ptr array[3, char]](strPtr)
  str[] = ['G','H','I']
  
  echo a
  echo line[0]


test()
INFO