Login  Register

typo in MessageLookup

Posted by Ladislav Marek on Jan 28, 2012; 7:15pm
URL: https://forum.world.st/typo-in-MessageLookup-tp4336704.html

Hi,

MessageLookup.st is missing in kernel/Makefile.frag and packages.xml, see patch.
MessageLookup>>sendTo: also reference undefined variable, patch:

diff --git a/kernel/MessageLookup.st b/kernel/MessageLookup.st
index ca495b9..e7f2bac 100644
--- a/kernel/MessageLookup.st
+++ b/kernel/MessageLookup.st
@@ -71,11 +71,11 @@ but also the starting class for the search.'>
         ^self startingClass lookupSelector: self selector
     ]

-    sendTo: receiver [
+    sendTo: anObject [
        "Send the message to the given receiver"

        <category: 'basic'>
-       ^receiver perform: self method with: anObject
+       ^anObject perform: self method with: anObject
     ]

     startingClass: aClass [

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk