On 2009/08/17 15:08, Thomas Pfaff wrote:
> On Mon, 17 Aug 2009 14:26:08 +0200
> Claudio Jeker <[email protected]> wrote:
> > > 
> > > Seems a bit overkill to mark personal preference with XXX magic, but
> > > alright.  I'll go with that explanation ;-)
> > 
> > The magic is for the value 1 (it does not matter if written 1 or 0x1) it
> > seems that for some magic reason that bit needs to be set or the world
> > stops spinning or something similar.
> >
> > Using hex notation for bitfields is more or less the standart as it is
> > easier to convert then decimals.
> > 
> 
> I agree, and I tend to do this myself.
> 
> It's not very consistent throughout the code, though, but whatever.
> 
> There's no magic and that was my question ;-)

"magic" is used in the sense of the 2nd meaning "unnamed numerical
constants" of http://en.wikipedia.org/wiki/Magic_number_(programming)

Reply via email to