[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] how to use bind function
You have to initialize the variables you binded in ns-default.tcl.
Huike (Victor) Li
Department of EEE
University of Melbourne
Victoria 3051
Australia
Tel: +61 3 9344 9201
Fax: +61 3 9344 9188
On Wed, 10 May 2000 [email protected] wrote:
> Hi, all
>
> I define a queue class, like RED or DropTail. then I wnat to use "bind"
> function, so that I can record some variable in TCL.
>
> My method is to add following command
> bind_bool("drop_front_", &drop_front_);
> into the construction fuction of the class, which I defined above.
>
> Then I run the TCL program, there is always a warning:
> "warning: no class variable Queue/ChanQue::ChanId
>
> see tcl-object.tcl in tclcl for info about this warning."
>
> But from the result, it DID record the variable, which I bound.
>
> Could you please tell me the reason?
>
> Thanks in advance.
>
> Zhang Dongmei
>
>
>