3.4.0.0.1 Differences from ns v1

Unlike ns 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 ns 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 ns 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.



Tom Henderson 2011-11-05