<html><head></head><body><div dir="auto">Hi,<br><br>You can test with #isBehavior<br><br>myObject isBehavior ifTrue: [ myObject canUnderstand: #foo ] ifFalse: [ myObject class canUnderstand: #foo ]<br></div><br><br><div class="gmail_quote"><div dir="auto">Em 7 de março de 2025 06:07:19 BRT, Gerald Klix via Cuis-dev <cuis-dev@lists.cuis.st> escreveu:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><div dir="auto">I know that sort of thinking around the corner, twice.<br><br>#canUnderstand: is implemented at the class side,<br>hence I have to send #class first, which fails<br>if you already have a class – an instance of behavior – at hand.<br><br>CYA,<br><br>Gerald Klix<br><br><br><br>On 3/6/25 12:37 PM, H. Hirzel via Cuis-dev wrote:<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><div dir="auto">The answer is<br><br> Morph canUnderstand: #exportAsJPEG<br><br>true<br><br>Sorry for asking.<br><br>HH<br><br>On 06/03/2025 9:10 am, H. Hirzel wrote:<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><div dir="auto">Hello list members<br><br> Morph class canUnderstand: #exportAsJPEG<br><br>answers 'false' meanwhile #exportAsJPEG is implemented in class Morph.<br><br>Contrariwise<br><br> Dictionary class canUnderstand: #printOn:<br><br>answers the expected value which is 'true'.<br><br>I wonder what is happening here.<br><br>Regards<br><br>Hannes<br><br></div></blockquote></blockquote><div dir="auto"><br></div></pre></blockquote></div><div dir="auto"><br>--<br>Att.<br>Wéslleymberg Lisboa<br>Graduado em Sistemas de Informação<br>Docente no IFFluminense - Campus Itaboraí<br>Ex-Bolsista de IC do Núcleo de Computação Científica (NC2-IFF) - Projeto IFF Aerospace<br>Github: <a href="https://github.com/weslleymberg">https://github.com/weslleymberg</a><br>Tel.: +55 22 99931-2376</div></body></html>