I am working with NS2.35 and tcl8.5 and i have a procedure that will be called several times ...
inside this procedure i have an associative array (arr) i want to empty this array each time the procedure is called
i tried to unset the array after entering the procedure like this :
Code:
foreach idx [array names arr] {
unset arr($idx)
}
and i tried:
Code:
foreach idx [array names arr] {
set arr($idx) {}
}
but the array is still have the old values and each time the procedure is called the new values is added to the old values!
Can you help me to do this in a right way?