[fpc-pascal] Illogical automatic dereferencing
Micha Nelissen
micha at neli.hopto.org
Sat Oct 10 16:58:49 CEST 2009
Henry Vermaak wrote:
> One thing I think you don't understand is that an array _is_ a
> pointer. Look at this table to visualise:
In Pascal, an array is not a pointer; at least not at the language
level. For a static array X (array[1..n] of T), you *can* write:
Move(Ptr^, X, sizeof(X));
because X *is* the array, representing the memory of the array.
Micha
More information about the fpc-pascal
mailing list