[fpc-devel] Incomplete docs on operator precedence / Question about actual precedence

Sven Barth pascaldragon at googlemail.com
Mon Feb 3 19:50:44 CET 2014

On 03.02.2014 18:52, Martin Frb wrote:
> On 03/02/2014 15:25, Martin Frb wrote:
>> On 03/02/2014 14:37, Sven Barth wrote:
>>> Nevertheless FPC provides the correct operator precedence (no matter
>>> whether overloading is used or not, because that is done at a
>>> different level of the parser):
>>> - power
>>> - unary plus/minus
>>> - product/divison
>>> - addition/substraction
> By the way, where does ** stand against @ ? ("**" is not in the
> precedence table on the docs)

@ always binds stronger than any arithmetic, set, whatever operators (in 
the compiler it's implemented as expecting a single factor (maybe with 
round brackets), so "@(x - y)" (or any other operator) should not work 
either no matter what overloads are available (again, parsing and 
resolving operators are different steps)).


More information about the fpc-devel mailing list