[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] MORE ON OTCL



I checked it out and found surprisingly that the passing is by "VALUE" 

But then refer to "ns-sat.tcl"
For example in the procedure add-interface, local variables are set
equal to instance variables AND later on the pointer updates are made to
local variables ONLY. 

AND since the passing is by value that means the pointers of instance
variables are not updated. 

THEn WHERE ARE THEIR(instance vars) POINTERS UPDATED ???? 
AND WHAT"S THE NEED FOR UPDATING THE POINTERS OF LOCAL VARIABLES WHEN
THEIR CHANGE
IS NOT GLOBALLY REFLECTED ????

PLS ANSWER IT SOON,

Amit