func assign2ref(ref, value) { *ref = value; } var x = 10; assign2ref(\x, 20); say x; # x is now 20