if its a class message, also check for redefined doesNotUnderstand.
authorClaus Gittinger <cg@exept.de>
Wed, 18 Aug 1999 17:54:54 +0200
changeset 944 992e734d878b
parent 943 5a9699ed4b9b
child 945 a42d24a15c84
if its a class message, also check for redefined doesNotUnderstand.
Parser.st
--- a/Parser.st	Wed Aug 18 17:54:16 1999 +0200
+++ b/Parser.st	Wed Aug 18 17:54:54 1999 +0200
@@ -2504,6 +2504,14 @@
                                         ok := true
                                     ]
                                 ].
+                                sCls := classToCompileFor class.
+                                [sCls notNil and:[sCls ~~ Object]] whileTrue:[
+                                    "if it implements #doesNotUnderstand somewhere, assume its ok"
+                                    (sCls implements:#doesNotUnderstand:) ifTrue:[
+                                        ^ aSelectorString
+                                    ].
+                                    sCls := sCls superclass
+                                ].
                                 err := ' is currently not implemented in the class'.
                             ]
                         ]
@@ -5179,6 +5187,6 @@
 !Parser class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/Parser.st,v 1.223 1999-08-09 14:42:39 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/Parser.st,v 1.224 1999-08-18 15:54:54 cg Exp $'
 ! !
 Parser initialize!