in reply to How swap works

Most probably the same way in which $a=$a+1; works: