On 25 May 2009, at 22:39, Prince Riley wrote:
That's a very interesting answer. So am I understanding you to say
that the
expression of the form
var := constant + numeric literal ;
is an invalid expression (syntax) in Object Pascal?
No, I meant that there was a bug (error) in the compiler regarding
handling expressions of the form "nil + <integer constant>". It's a
valid expression. nil has as type "pointer", and you can add integers
to untyped pointers (constant or not). The result is again an untyped
pointer.
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal