[ns] Binding?

Haobo Yu haoboy@isi.edu
Wed, 12 Apr 2000 10:17:45 -0700 (PDT)


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 : akoubaa@loria.fr
> Projet : Comparaison des Protocoles de clés de distribution de clé de
> groupe en utilisant NS
> --------------------------------------------------------------------------
>