Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

Nim

Visibility

unlisted

Author

legacy-anonymous

Created

2017-09-30T09:41:19Z

Updated

2017-09-30T09:41:19Z

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


test()
INFO