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

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Apr 28 10:53:41 CEST 2010


On 28 Apr 2010, at 10:48, Jonas Maebe wrote:

>  { now delete one of these elements }
>  finalise(a[4]);
>  { and compact the array }
>  move(a[3],a[4],(length(a)-3)*sizeof(a[0]));

Well, actually:

move(a[5],a[4],(length(a)-5)*sizeof(a[0]));


Jonas



More information about the fpc-pascal mailing list