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

Re: [ns] Binding?



Theoretically you can use TclClass::bind() and bind that static variable
as a variable of the otcl class. However, I tried it about two years ago
and it happened not to work. I'm not sure if it's working now, and you can
see PacketHeaderClass in packet.cc for an alternative implementation. 

- Haobo

On Wed, 12 Apr 2000, Anis Koubaa wrote:

> hi,
> Could we bind a static class variable to a Tcl variable?
> For exemple in the declaration of our agent class we have :
> /*******************/
> static int C_var;
> /********************/
> could we bind this variable to a Tcl varaible like this :
> /*******************************/
> bind ("tcl_var",&C_var);
> /*****************************/
> 
> Thank you
> -- 
> --------------------------------------------------------------------------
>         Cordialement
>         
> Koubaa Anis 
> Organization : LORIA Nancy
> Equipe : RESEDAS
> Adresse : CU Haute Malgrange Vandeoeuvre Nancy Bloc C 528
> Mail : [email protected]
> Projet : Comparaison des Protocoles de cl�s de distribution de cl� de
> groupe en utilisant NS
> --------------------------------------------------------------------------
>