Mirsad Todorovac wrote:
On Thu, 15 Nov 2001, Frank Heckenbach wrote:
Mirsad Todorovac wrote:
Please don't hate me - while writting mirsad08.pas I came to this problem: line 14 with Boolean expression fails to compile (or I don't know Pascal syntax well enough).
I fear the latter (-; though it's a common problem). In Pascal, `or' etc. have higher precedence than `=', `>' etc.
What the embarrasment :-( ... And at the time I knew it, now I remember - but it was in 1500 pascal lines of high-school graduation work ... Last 10 years I mostly did C ...
I blew it, Frank, what should I do to atone?
Not necessary. Actually, this post has already helped, since Maurice's subsequent quoting of the standard led me to find some bugs in GPC with obscure cases like `True < False < True' and `0 in [1 .. 10] in [False]' which both are valid (and both should give True!) which I've just fixed. :-)
Frank