type MyRef = ref object a: int let a = @[MyRef(a: 1)]var b: seq[MyRef] b = a b[0].a = 666 echo a[0].aecho b[0].a
Standard input is empty
666 666
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!