[squeak-dev] Should you override #doesNotUnderstand: and #respondsTo: together?

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Jan 31 09:14:04 UTC 2020


Hi all,


just struggled over the fact that Json objects provide access to their keys via #doesNotUnderstand:, but they do not override #respondsTo:. Example:


json := Json readFromString: '{"foo": 42}'.
json foo. "42"
json respondsTo: #foo. "false"


Question: Is this discrepancy indeed desired behavior? Or should we rather always try to override #doesNotUnderstand: and #respondsTo: together?


Best,

Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200131/53a84302/attachment-0001.html>


More information about the Squeak-dev mailing list