Avoid 'is not a symbol in globalKnown' debug messages from librun rel5_2_1 rel5_2_2
authorStefan Vogel <sv@exept.de>
Sat, 20 Mar 2004 17:40:16 +0100
changeset 1502 de3c4e208b9f
parent 1501 ca87aed7eb82
child 1503 5feba91aa28a
Avoid 'is not a symbol in globalKnown' debug messages from librun when filing in.
UnaryNode.st
--- a/UnaryNode.st	Fri Mar 19 19:14:26 2004 +0100
+++ b/UnaryNode.st	Sat Mar 20 17:40:16 2004 +0100
@@ -193,14 +193,19 @@
      into the system (would make the '... is nowhere implemented' warning
      go away."
 
-    ((selector == #'self') or:[
-     (selector == #'super') or:[
-     (selector == #'thisContext') or:[
-     (selector == #'nil') or:[
-     (selector == #'true') or:[
-     (selector == #'false') or:[
-     (Smalltalk includesKey:selector)]]]]]]) ifTrue:[
-        ^ 'funny selector; possible missing ''.'' or keyword'
+    |selectorSymbol|
+
+    selectorSymbol := selector asSymbolIfInterned.
+    selectorSymbol notNil ifTrue:[
+        ((selectorSymbol == #self) or:[
+         (selectorSymbol == #super) or:[
+         (selectorSymbol == #thisContext) or:[
+         (selectorSymbol == #nil) or:[
+         (selectorSymbol == #true) or:[
+         (selectorSymbol == #false) or:[
+         (Smalltalk includesKey:selectorSymbol)]]]]]]) ifTrue:[
+            ^ 'funny selector; possible missing ''.'' or keyword'
+        ].
     ].
 
     "
@@ -340,5 +345,5 @@
 !UnaryNode class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/UnaryNode.st,v 1.42 2004-03-19 13:26:01 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/UnaryNode.st,v 1.43 2004-03-20 16:40:16 stefan Exp $'
 ! !