In the official systems manual, and other tutorials online, pointer.repr prints the memory address of the pointer and the value it points to.
This is a direct copy from https://nim-lang.org/docs/system.html#addr%2CT
var
buf: seq[char] = @['a','b','c']
p = buf[1].addr
echo p.repr # ref 0x7faa35c40059 --> 'b'
echo p[] # b
However when I try to run this exact code on nim 2.0.2 on windows 10, this is the return:
ptr 'b'
b
my own code where I want to test copy vs move semantics of strings also has the same issue.
How can I get the same output as the manual?