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)).

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to