Am 03.02.2014 10:42, schrieb Hans-Peter Diettrich:

//  p:= -@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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to