[Cuis-dev] Morph class canUnderstand: #exportAsJPEG -- Answer is false: why?
Weslleymberg Lisboa
weslleym.lisboa at gmail.com
Fri Mar 7 05:10:18 PST 2025
Hi,
You can test with #isBehavior
myObject isBehavior ifTrue: [ myObject canUnderstand: #foo ] ifFalse: [ myObject class canUnderstand: #foo ]
Em 7 de março de 2025 06:07:19 BRT, Gerald Klix via Cuis-dev <cuis-dev at lists.cuis.st> escreveu:
>I know that sort of thinking around the corner, twice.
>
>#canUnderstand: is implemented at the class side,
>hence I have to send #class first, which fails
>if you already have a class – an instance of behavior – at hand.
>
>CYA,
>
>Gerald Klix
>
>
>
>On 3/6/25 12:37 PM, H. Hirzel via Cuis-dev wrote:
>> The answer is
>>
>> Morph canUnderstand: #exportAsJPEG
>>
>> true
>>
>> Sorry for asking.
>>
>> HH
>>
>> On 06/03/2025 9:10 am, H. Hirzel wrote:
>>> Hello list members
>>>
>>> Morph class canUnderstand: #exportAsJPEG
>>>
>>> answers 'false' meanwhile #exportAsJPEG is implemented in class Morph.
>>>
>>> Contrariwise
>>>
>>> Dictionary class canUnderstand: #printOn:
>>>
>>> answers the expected value which is 'true'.
>>>
>>> I wonder what is happening here.
>>>
>>> Regards
>>>
>>> Hannes
>>>
>
>--
>Cuis-dev mailing list
>Cuis-dev at lists.cuis.st
>https://lists.cuis.st/mailman/listinfo/cuis-dev
--
Att.
Wéslleymberg Lisboa
Graduado em Sistemas de Informação
Docente no IFFluminense - Campus Itaboraí
Ex-Bolsista de IC do Núcleo de Computação Científica (NC2-IFF) - Projeto IFF Aerospace
Github: https://github.com/weslleymberg
Tel.: +55 22 99931-2376
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250307/c37f910d/attachment.htm>
More information about the Cuis-dev
mailing list