[fpc-devel] Incomplete docs on operator precedence / Question about actual precedence
Sven Barth
pascaldragon at googlemail.com
Mon Feb 3 11:32:40 CET 2014
Am 03.02.2014 10:42, schrieb Hans-Peter Diettrich:
>
>> // p:= - at i; // if enabled, next line will crash
>
> This should not compile, unary - is not applicable to addresses.
It compiles, because Martin has defined a operator overload for PInteger
(look at his code). And as long as no internal operator is defined (as
you said: unary minus is not defined for pointers) the compiler will
allow that overload.
Regards,
Sven
More information about the fpc-devel
mailing list