[ns] c++ and OTcl objects
Mon, 15 Oct 2001 12:20:37 -0700 (PDT)
what is the connection between the TclClass and the
TCl Objects both the interpreted and the shadow(C++_
objects)?As far as i understood I think this is what
class fooTclClass :public TclClass
At start up of ns this creates the interpreted
hierarchy and the fooObj.
Later when we say in the tcl script
new Foo "X"
it calls the interpreted class constructor that calls
the TclObject constructor.This calls createShadow()
method of this class which creates shadow objects for
the C++ heirarchy and then this returns the final
TclObject of the C++ heirarchy.
1.Is this right?
2.There is a create method to be used in every
TclClass derived class i.e in our case the
fooTclClass.What is this for?
thanks in advance,
Do You Yahoo!?
Make a great connection at Yahoo! Personals.