[fpc-pascal] IE 200307043
Frank Peelo
f26p at eircom.net
Wed May 27 17:45:24 CEST 2009
JoshyFun wrote:
> Hello Frank,
>
> Wednesday, May 27, 2009, 2:49:26 PM, you wrote:
>
> FP> But I'm more puzzled by what it would /mean/. In spite of your bracketed
> FP> comment here, you seem to be thinking that nil is an address: i.e.
> FP> adding/subtracting/multiplying a literal would mean something. I'm just
> FP> pointing out that, if you think it's an address, it's undefined. Because
> FP> it's not any address. So adding something to it doesn't mean anything.
>
> From my point of view nil is like the infinite in mathematics, so it
> is not range bounded and operations like nil+1 are impossible, or in
> the worst case equal to nil again. Once you assigned nil to a pointer
> the value becomes in range so it can be operated as usual.
Thanks. That's what I was trying to get across. Why try nil+1? It
doesn't mean anything! So the Error is only that a different error
message should appear - not that it should compile.
FP
More information about the fpc-pascal
mailing list