[fpc-pascal] IE 200307043

Jürgen Hestermann juergen.hestermann at gmx.de
Wed May 27 17:33:01 CEST 2009


> 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.

Yes, doing arithmetics with NIL is useless. NIL is defined to mean 'not 
defined'. How can you add something to that? Even if the compiler allows 
you to do that, the result cannot be predicted.

Jürgen Hestermann.





More information about the fpc-pascal mailing list