[Newbies] AbstractObjectsAsMethod

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Mar 11 11:48:01 UTC 2021


Hi David,


I think this is already documented quite well in TestObjectsAsMethods, directly in your image. IMO this kind of documentation is also more sustainable than documentation in a far-away wiki that can deprecate and be out of sync with the rest of the code. :-)


Best,

Christoph

<http://www.hpi.de/>
________________________________
Von: Beginners <beginners-bounces at lists.squeakfoundation.org> im Auftrag von stes at PANDORA.BE <stes at telenet.be>
Gesendet: Donnerstag, 11. März 2021 12:32:29
An: beginners
Betreff: Re: [Newbies] AbstractObjectsAsMethod

-----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-----
_______________________________________________
Beginners mailing list
Beginners at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20210311/f66508ce/attachment.html>


More information about the Beginners mailing list