> On 13 Sep 2015, at 12:15 , Yuriy Tymchuk <[email protected]> wrote:
> 
> I don’t care about other dialects. I’m not changing anything now. I’m just 
> saying: “here is a limitation, maybe it can be solved in this way”. Maybe 
> there is a real reason for that. But nobody answers.
> 
> Uko

And I'm telling you, it's not the limitation that's wrong, it's the use.

If you want a hierarchy like:
SelectionChanged
        ClassChanged
        ProtocolChanged
        MethodChanged

to work, you use double dispatch.

myThing when: SelectionChanged do: [:ann ann handleBy: self ]


ClassChanged >> #handleBy: aResponder
        aResponder classChanged: ann

ProtocolChanged
        aResponder protoclChanged: ann


etc.

You do *not* respond to each specifically
when ClassChanged do: [:ann self classChanged: ann]


Cheers,
Henry

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to