[fpc-pascal] dynamic array contents and system.move
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat May 1 16:54:37 CEST 2010
On 01 May 2010, at 11:09, Jürgen Hestermann wrote:
> Yes, that looks good as it does not violate the rule that an identifier should mean the same memory address independent from context.
As has been explained umpteen times already in this thread: a dynamic array identifier always identifies exactly the same memory address (namely the address of the pointer to the array). It's the "[]" operator that has been overloaded for dynamic arrays to basically mean "^[]", similarly to how
a) it behaves for pchars
b) "." for classes means "^." (and also for pointers to records in Delphi mode)
And no, the syntax for dynamic arrays will not be changed nor extended (unless Embarcadero would do so).
This is my final post in this thread.
Jonas
More information about the fpc-pascal
mailing list