[fpc-devel] weird syntax
Vinzent Hoefler
JeLlyFish.software at gmx.net
Wed Dec 12 08:02:28 CET 2007
On Tuesday 11 December 2007 10:04, Michael Schnell wrote:
> Andrew Haines wrote:
> > Hi,
> >
> >
> > Is it possible to make this work:
> >
> > if X > 3 or < 10 then ...
> >
> > of course it would be shorthand for: if (X>3) or (X<10) then....
>
> The "or" operator is stronger than the "<" operator by definition.
> This can't be changed.
Neither needs to be. There is no operand, but two operators ("or <") in
the second expression, so you wouldn't even be able to apply precedence
rules.
Vinzent.
More information about the fpc-devel
mailing list