DoWhatIMeanSupport.st
changeset 5370 ec87b8971f7b
parent 5368 1b5ca0f20be5
child 5371 dce886c0d8f7
child 5379 0f89327edf3c
--- a/DoWhatIMeanSupport.st	Fri Dec 02 10:35:37 2016 +0100
+++ b/DoWhatIMeanSupport.st	Mon Dec 05 16:05:37 2016 +0100
@@ -3702,7 +3702,7 @@
                         (val isLiteral and:[ (printString := val printString) size < 15 ]) ifTrue:[
                             eachName,' (= ',printString allItalic,' )'
                         ] ifFalse:[
-                            eachName,' (= ',val classNameWithArticle allItalic,' )'
+                            eachName,' (= ',val class nameWithArticle allItalic,' )'
                         ].
                     ].
                 ].
@@ -6143,9 +6143,11 @@
             ].
             con := con home.
         ].
-        "/ an instvar
+        "/ an instvar?
         (contextOrNil receiver class allInstVarNames includes:aVariableName) ifTrue:[
-            nodeVal := contextOrNil receiver instVarNamed:aVariableName.
+            contextOrNil receiver isProtoObject ifFalse:[
+                nodeVal := contextOrNil receiver instVarNamed:aVariableName.
+            ].
             nodeVal notNil ifTrue:[
                 ^ { nodeVal . #instanceVariable }
             ].