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

Re: [ns] debug_ missing




 you have to initialize it in the ns../tcl/lib/ns-default.tcl

ODCControl set debug_ false

i think this will solve your problem.

Thanks
Bhagya

On Fri, 8 Jun 2001, Oliver Dawid wrote:

> hi there,
> 
> i am writing on several classes for my simulation. therefor i am deriving
> from TclObject. the implementation works fine but i allways get this
> warning:
> 
> ---snip---
> warning: no class variable ODCControl::debug_
>  
>         see tcl-object.tcl in tclcl for info about this warning.
> ---snip---
> 
> but i have defined a variable debug_ in the c++ code and did a binding to
> tcl:
> 
> ---snip---
> class ODCControl : public TclObject {
> public:
>   ODCControl();
>   ...
> };
> 
> 
> ODCControl::ODCControl() : debug_(0) {
>   ...
>   bind("debug_", &debug_);
>   ...
> }
> ---snip---
> 
> any idea?
> 
> thanks,
> 
> od
> 
> -- 
>    Oliver Dawid * [email protected] * http://www.fet.uni-hannover.de/~od/
> 
>