Aliasing swapped values

2005-04-10 Thread Ovid
Hi all, Apologies if this has been covered. What should this do? ($x,$y) := ($y,$x); In Perl5: $x=2; $y=3; print x: $x y: $y\n; (*::x, *::y) = (*::y, *::x); $y=4; print x: $x y: $y\n; $x=5; print x: $x y: $y\n; This program shows typeglob aliasing. If we try to alias swapped

Re: Aliasing swapped values

2005-04-10 Thread Juerd
Ovid skribis 2005-04-10 10:47 (-0700): Apologies if this has been covered. What should this do? ($x,$y) := ($y,$x); It would let $x be a second name for the variable that is also called $y, and $y for $x. The old names $x and $y are overwritten, so essentially the names for the two variables