Quick actions

cmd+k|ctrl+k

Navigation

Languages

Untitled

Snippet info

Language

Nim

Visibility

unlisted

Author

legacy-anonymous

Created

2018-05-07T22:45:07Z

Updated

2018-05-07T22:45:07Z


proc thing() =
  var a, b: ref seq[int]
  new a
  a[] = @[1, 1, 1]
  b = a
  echo a[]
  echo b[]
  b[1] = -1
  echo a[]
  echo b[]

static:
  echo("--NIMVM--")
  thing()

echo("--RUNTIME--")
thing()
INFO