xor operator?

Greg gmc333 at my-deja.com
Tue Jan 30 11:21:04 EST 2001


In article <slrn97cuta.eti.quinn at groat.ugcs.caltech.edu>,
  quinn at groat.ugcs.caltech.edu (Quinn Dunkan) wrote:
> On Mon, 29 Jan 2001 13:02:30 +0100, jurgen.defurne at philips.com
> <jurgen.defurne at philips.com> wrote:
> >I have indeed never met a language which had a boolean XOR (but some
> >have a binary XOR).
>
> if true xor false then
>    std_output.put_string("eiffel does!%N");
> end; -- and we can't use the std abbreviations, either, Just Because!
>
> Not that I've ever actually used it or anything.  We only need one
kind of
> loop, because that's "minimal", but hey, pile on the random boolean
operators!
>
> :)
>

LOL! I grepped through SmallEiffel's standard library and found one
place where the boolean xor was used: in part of a contract.

Greg
--
http://homestead.deja.com/user.gmc333/index.html


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list