cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/15/21:27:08

Message-Id: <199802160223.PAA06125@fep1-orange.clear.net.nz>
From: "Jamie Love" <jamie DOT love AT clear DOT net DOT nz>
To: "Peter Palotas" <blizzar AT hem1 DOT passagen DOT se>
Cc: "DJGPP mailing list" <djgpp AT delorie DOT com>
Subject: Re: xor and how to do it
Date: Tue, 17 Feb 1998 03:24:22 +1300
MIME-Version: 1.0

----------
> From: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
> To: Jamie Love <jamie DOT love AT clear DOT net DOT nz>
> Cc: djgpp AT delorie DOT com
> Subject: Re: xor and how to do it
> Date: Monday, February 16, 1998 05:45
> 
> At 22.28 1998-02-16 +1300, you wrote:
> >Hello, 
> >In writing my game, I have come across a few occurances where a bitwise
xor
> >would be extremely helpful.
> >
> >I know and is &, and or is | but what is xor??
> Xor should be '^' if I'm not mistaken, i.e. int i = 5 ^ 3;
I thought so, but for some reason my implementation didn't work
i used 
buttonFlags ^= BUTTON_FLAG_DISABLED 
but I'll try it again, it probably was my mistake somewhere else in the
code

> >Also, what are the use of the keywords and, xor and or??
> 
> Don't understand your question here. :( There are no keywords in C/C++
> named 'and' 'or' or 'xor'!
I mean in rhide, these works come up white (as keywords), what exactly does
this mean then?
I didn't think they were keyworks (or should i say, i knew they wern't)

Jamie Love
Part of the Silicon Wanderers
(http://www.geocities.com/SiliconValley/Horizon/4532)
e-mail me at jamie DOT love AT clear DOT net DOT nz
ICQ: 7493228

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019