[fpc-pascal] dynamic array contents and system.move

spir ☣ denis.spir at gmail.com
Wed May 5 11:13:44 CEST 2010


On Wed, 05 May 2010 07:34:41 +0200
Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:

> Say that it is a pointer to an array (and do not let the user think it is "an array"!). And say that although it is a pointer you still cannot derefference it but you need to use the first index to get the beginning of the array.

I agree that if it is said to be "a pointer to an array", dereferencing should eg allow copying the array globally (to another variable of the same kind, also dereferenced: "a2^:=a1^"). Which indeed is wrong. But i cannot find this the the fpc ref.

On another point, maybe because I have a rather shallow C culture, I'm not tempted to use array variables as pointers to element #0, nore to do direct computations on their actual integer values. The [] syntax is here to provide all what I need.
(Maybe that's only me.)

Denis
________________________________

vit esse estrany ☣

spir.wikidot.com



More information about the fpc-pascal mailing list