[squeak-dev] [bug] xor: is this an old bug or what?

Keith Hodges keith_hodges at yahoo.co.uk
Tue Mar 24 03:10:27 UTC 2009


Kazuhiro ABE wrote:
> Hi, Keith,
> Boolean>>xor: requires a Boolean as a parameter, not a BlockContext.
> See the definition of xor:.
>
> Kazuhiro Abe
>
> 2009/3/24 Keith Hodges <keith_hodges at yahoo.co.uk>:
>   
>> true xor: [ true ]  => true
>>
>> discuss
>>
>> Keith
I think that the following would be more consistent.

xor: aBoolean

    ^(self == aBoolean value) not

I was quite pleased to find an application for xor: my first in 15 years
of Smalltalking.

Keith




More information about the Squeak-dev mailing list