On Mon, 31 May 1999, Scott Johnson wrote:
> Aaron Ardiri wrote:
> > > So dmErrCorruptDatabase (( 0x200|9 ) == 521) is the error.
> >   now this is a STUPID way to write that!
> 
> Huh?  You mean using bit-or "|" instead of "+" in the #define?

  yes.. of course most people understand that "|" also means
  "+" when dealing with this situation - however some people
  dont!

  it is probably more clear to the "typical" programmer to use
  the "+" - what about the people who are not using C?
 
> >   not everyone is a "true" hacking programmer.. Obfuscation +1 for
> >   the PalmOS development team!
> 
> I don't think obfuscation was the intent.  I've seen both styles used in
> other systems.  What's the big deal?

  me either.. no problem on my end.. 
 
> >   being a #define, the compiler should determine the value
> >   in the preprocess phase (<sarcasm>gcc does!</sarcasm> -
> >   is that NOT the purpose of a preprocessor?
> 
> Yes, and it does handle "|" just as easily as "+", right?

  yes.. it does.. but the "programmer" is not usally as smart
  as you now are they?

  maybe one day you might want to at least try and understand
  that just because YOU know, not everyone else does either.

  it would be more "easier" to understand with a "+", rather
  than a "|". :P

  trust me.. i teach C at an introductory level - they DO NOT
  like to see something different from what they learnt in 
  early school. 

  cheers.

az. 
--
Aaron Ardiri 
Lecturer                       http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 352 8192           A/H: +46 26 10 16 11

Reply via email to