[squeak-dev] [bug] xor: is this an old bug or what?
Claus Kick
claus_kick at web.de
Thu Mar 26 21:28:52 UTC 2009
Eliot Miranda wrote:
> I think just
>
> True>>xor: aBoolean
> ^aBoolean not
>
> False>>xor: aBoolean
> ^aBoolean
<OT>
One of my first excerices in Smalltalk was to implement an exclusive or
as "||", without being told that xor: is exactly that.
The reference implementation was the above, if memory serves me right.
</OT>
Sorry for reminiscing in public...
More information about the Squeak-dev
mailing list
|