[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble with bind
Hi,
That's not related to bind procedure. You have to initialize such
variables in ns-default.tcl to the appropriate value.
kedar
At 04:16 PM 8/14/98 -0700, Nitin Vaidya wrote:
>
>
>I seem to have come across a feature/bug in bind, perhaps due to misuse
>on my part.
>
>
>Here is my scenario:
>
> DropTail::DropTail() {
> ...
> bind("drop-front_", &drop_front_);
> ...
> }
>
>
> NewClass::NewClass() {
>
> DropTail *Q = new DropTail;
>
> } new_class ;
>
>
> When the constructor for "new_class" is executed, I get the
> runt-time warning
>
> warning: no class variable NewClass::drop-front_
>
> Why does this warning appear?
> The warning is issued when executing the "bind" when the constructor
> for object Q (class DropTail) is executed.
> If the constructor is for DropTail class, why does the Warning refer to
> class NewClass ?
> NewClass does not declare or use drop-front_ anywhere.
>
> Any clarification would be appreciated.
>
> Regards.
>
> - nitin
>
>
>