TUdataSwap TCL UTILITIES USER MANUAL TUdataSwap
SYNOPSIS
Swap (interchange) two values
PACKAGE
TCLUTILS
NAME
TUdataSwap
USAGE
TUdataSwap  A B
INPUT DEFINITIONS
A - Data value 1
B - Data value 2
RETURN DEFINITION
No returned quantity
DESCRIPTION
TUdataSwap swaps the contents of the variables A and B.
ERRORS
None Generated
C BACKING
No
EXAMPLE(S)
set A  VARIABLE_A
set B  VARIABLE_B

TUdataSwap A B
puts stderr "A is $A"
puts stderr "B is $B"

> A is VARIABLE_B
> B is VARIABLE_A

      
Apr 22, 2003