[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squeak-dev
Subject:    Re: [squeak-dev] [bug] xor: is this an old bug or what?
From:       Claus Kick <claus_kick () web ! de>
Date:       2009-03-26 21:28:52
Message-ID: 49CBF394.1090003 () web ! de
[Download RAW message or body]

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...

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic