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

Juha Manninen juha.manninen at phnet.fi
Sun Apr 25 13:36:21 CEST 2010

> This is plainly wrong. When indexing a dyn. array, the compiler
> generates the correct code to access the data, no more no less.

It would be possible to allow this syntax :
  move(data ...
in addition to the current :
  move(data[0] ...

There is no fundamental reason why it wouldn't be possible. The compiler would 
generate the correct code as you mentioned.
Every newbie is struggling with this syntax. I remember struggling with it 
myself. It is not intuitive at all.


More information about the fpc-pascal mailing list