git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Operator precedence problem


MRAB wrote:

> In Pascal, "and" has the same precedence as "*" and "or" has the same 
> precedence as "+".

Which was annoying, because it gave them higher precedence
than the comparison operators, so instead of

    a = b and c > d

you had to write

    (a = b) and (c > d)

-- 
Greg