fork download
  1. proc main =
  2. let a = @[1]
  3. var b: seq[int]
  4.  
  5. shallowCopy b, a
  6.  
  7. b[0] = 5
  8.  
  9. echo a
  10. echo b
  11.  
  12. main()
Success #stdin #stdout 0s 2420KB
stdin
Standard input is empty
stdout
@[5]
@[5]