On 27 May 2009, at 19:26, Prince Riley wrote:

p := p + nil; is INVALID (expression is valid, operands valid but result
is invalid) -- execution error, execution addressing exception

This will always be invalid regardless of how nil is handled, because you cannot add two pointers together. You can add integers to pointers though, so the question is about "nil + 1" and the like. Delphi indeed gives an error, which makes sense. I resolved the internalerror by accepting the expression, which is indeed not a good idea. So I'll change it.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to