Hi,
was haltet ihr von folgenden Möglichkeiten?
[autoit]
dim $a = "1"
dim $b = "2"
;~ tausch1()
;~ tausch2()
func tausch1()
$a = BitXOR($a, $b)
$b = BitXOR($a, $b)
$a = BitXOR($a, $b)
EndFunc
func tausch2()
$tmp = $a
$a = $b
$b = $tmp
EndFunc
MsgBox(0,"","$a = " & $a & @CRLF & _
"$b = " & $b)
Im Endeffekt kommt je das gleiche raus, nur eben einmal mit und einmal ohne Hilfsvariable (dementsprechend Auskommentierung entfernen).
Gruß
x0r