do not longer remove all class methods after defining instance class vars
authortz
Thu, 05 Feb 1998 18:02:18 +0100
changeset 3278 bbc08c1a165d
parent 3277 35bc5ebe73ce
child 3279 09d2ccf1bed2
do not longer remove all class methods after defining instance class vars
Metaclass.st
--- a/Metaclass.st	Thu Feb 05 16:15:30 1998 +0100
+++ b/Metaclass.st	Thu Feb 05 18:02:18 1998 +0100
@@ -265,7 +265,7 @@
 "/        Transcript showCR:'recompiling methods accessing ' , addedNames printString ,  '...'.
 "/        Transcript endEntry.
 
-        "recompile class-methods"
+        "recompile class-methods"    
         newMetaclass recompileMethodsAccessingAny:addedNames.
     ] ifFalse:[
         "
@@ -352,6 +352,7 @@
             newSub setSuperclass:(oldToNew at:oldSuper).
         ].
         newSub setMethodDictionary:(aSubclass methodDictionary copy).
+        newSub class setMethodDictionary:(aSubclass class methodDictionary copy).
         newSub setName:(aSubclass name).
         newSub classVariableString:(aSubclass classVariableString).
         newSub setComment:(aSubclass comment).
@@ -1887,6 +1888,6 @@
 !Metaclass class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Metaclass.st,v 1.120 1997-11-02 17:46:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Metaclass.st,v 1.121 1998-02-05 17:02:18 tz Exp $'
 ! !
 Metaclass initialize!