Hello Przemek,
Przemyslaw Czerpak-2 wrote: > > It's cause by very danger rules used to emulate Harbour bit operators: > &, |, ^^ > in hbcompat.ch: > #translate ( <exp1> | <exp2> ) => ( HB_BITOR( (<exp1>), (<exp2>) ) > ) > #translate ( <exp1> & <exp2> ) => ( HB_BITAND( (<exp1>), (<exp2>) > ) ) > #translate ( <exp1> ^^ <exp2> ) => ( HB_BITXOR( (<exp1>), (<exp2>) > ) ) > > I suggest to comment these lines. > & has special meaning in Clipper and using it as bit operator in xHarbour > creates syntax problems. We cannot replicate exact xHarbour behavior even > on compiler level without breaking some valid Clipper code. > The above PP rules are simple hacks which can help in some places but > also can break some other code just like in your example. > If you need bit operators then use HB_BIT* functions. They are optimized > by compiler at compile time so you can use them also to initialize static > variables. > This work´s fine :) Thanks a lot, Rossine. -- View this message in context: http://www.nabble.com/Error-in-%22if%22-tp22412518p22413694.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour