next up previous contents index
Next: Example configuration of Up: 3.4 Class TclObject Previous: 3.4 Class TclObject Differences from  v1

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.