Import Tcl-code 8.6.8
This commit is contained in:
@@ -537,7 +537,8 @@ KillFoundation(
|
||||
* AllocObject --
|
||||
*
|
||||
* Allocate an object of basic type. Does not splice the object into its
|
||||
* class's instance list.
|
||||
* class's instance list. The caller must set the classPtr on the object,
|
||||
* either to a class or to NULL.
|
||||
*
|
||||
* ----------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1672,6 +1673,8 @@ Tcl_NewObjectInstance(
|
||||
AllocClass(interp, oPtr);
|
||||
oPtr->selfCls = classPtr;
|
||||
TclOOAddToSubclasses(oPtr->classPtr, fPtr->objectCls);
|
||||
} else {
|
||||
oPtr->classPtr = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user