Juha Manninen schrieb:
>> 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. 

There is: there is no reason why move should be handled differently than
other procedures.

> 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.

If you mess with move and have no clue about internals, then you get
burned. Period. Proper dyn. array code uses copy(...) instead of move.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to