[fpc-pascal] IE 200307043
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon May 25 22:43:35 CEST 2009
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
More information about the fpc-pascal
mailing list