[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
otcl c++ variable binding.
HI,
I tried to create a new variable duplicate_ in C++ and want to
bind it to duplicate_ in otcl.
I have a new class of type Classifier/MH, and set
"Classifier/MH set duplicate_ 0" in ns-default.tcl.
In the file MH.cc, I defined the var duplicate_ as integer, and bound it by,
bind("duplicate_", &duplicate_).
But, when I try to access the variable duplicate_ in the test script,
it gave an error saying
can't read "duplicate_": no such variable
Any help.
Karu.