Referencing in variable assignment and reassignment