[fpc-devel] weird syntax

Florian Klaempfl florian at freepascal.org
Wed Dec 12 08:58:03 CET 2007


Vinzent Hoefler schrieb:
> 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.

Actually, the shorthand for this expression is
if true then
...
;)



More information about the fpc-devel mailing list