dont copy comment from autoloaded classes
authorClaus Gittinger <cg@exept.de>
Mon, 15 Jan 1996 22:43:50 +0100
changeset 866 615ea25db48b
parent 865 0cfc2bd91232
child 867 49464b56812e
dont copy comment from autoloaded classes
Metaclass.st
--- a/Metaclass.st	Mon Jan 15 22:43:31 1996 +0100
+++ b/Metaclass.st	Mon Jan 15 22:43:50 1996 +0100
@@ -477,7 +477,7 @@
 
     "look, if it already exists as a class"
     oldClass := aSystemDictionary at:classSymbol ifAbsent:[nil].
-    oldClass isBehavior ifFalse:[
+    (oldClass isBehavior and:[oldClass isLoaded]) ifFalse:[
 	oldClass := nil.
     ] ifTrue:[
 	oldClass name ~= classSymbol ifTrue:[
@@ -1354,5 +1354,5 @@
 !Metaclass class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Metaclass.st,v 1.41 1995-12-12 12:55:31 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Metaclass.st,v 1.42 1996-01-15 21:43:50 cg Exp $'
 ! !