On Wed, 05 May 2010 07:34:41 +0200
Jürgen Hestermann <juergen.hesterm...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to