Next: 3.4.0.0.2 Example configuration of
Up: 3.4 Class TclObject
Previous: 3.4 Class TclObject
Unlike v1, the class TclObject
subsumes the earlier functions of the NsObject class.
It therefore stores the
interface variable bindingsSectionsec:VarBinds
that tie OTcl instance variables in the interpreted object
to corresponding C++ member variables in the compiled object.
The binding is stronger than in v1 in that
any changes to the OTcl variables are trapped,
and the current C++ and OTcl values
are made consistent after each access through the interpreter.
The consistency is done through the
class InstVarSectionsec:InstVar.
Also unlike v1, objects in the class TclObject
are no longer stored as a global link list.
Instead, they are stored in a hash table in the
class TclSectionsec:HashTables.
2000-08-24