[Newbies] AbstractObjectsAsMethod

stes@PANDORA.BE stes at telenet.be
Thu Mar 11 11:32:29 UTC 2021


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


When doing a search on wiki.squeak.org: search for AbstractObjectsAsMethod

it finds matches in

ListOfClassesInSqueak5dot0 
ListOfClassesInSqueak5dot1
ListOfClassesInSqueak5dot2
ListOfClassesInSqueak5dot3

So AbstractObjectsAsMethod  is in there, but there is no info,
that the purpose is (I think) that subclasses provide their own version of

   run:aSelector with:arguments in:aReceiver

where the run:with:in: message is dispatched by the VM.

In the example with the class Bar where I add #foobar 
using addSelector:withMethod:

aSelector is #foobar
arguments is an Array
aReceiver is then an instance of Bar

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJgSf+RAAoJEAwpOKXMq1MalZUH/jaympPLw9I5nj9XWcktII+x
8L42KDIUTYROfo7+SbJ14/lx4POujxSPG7F8LYBkzNoVS+7fzA8WVZK+h1yYx6du
BdpINh5XuMtgMft/u9b/0dS56xbnk0+oKkCKLV7G6iujMl8qfPjGXy6b2MWedDuF
OOBPeIakns2JCmwOMRwWnREZt1H3xOa8WEPBW4cQZ7aSje5H9gHCBEabtkd12x1T
WJU4+JsuNTk9bUlo8w1NchfbEdAR1vrzoHlTwxlJYTn5Vt3wsKUyox9Vxfut0skf
uMpg2jhVYGSkqve39jclvhqB/Pjw0UgLeLAWCBErYK814wBYB5+8Boqx7Mq+6KI=
=8OYx
-----END PGP SIGNATURE-----


More information about the Beginners mailing list