[fpc-devel] Aligned dynamic arrays

Jonas Maebe jonas at freepascal.org
Sat Mar 30 14:55:05 CET 2019


On 30/03/2019 14:42, Anthony Walter wrote:
> You are not required to dereference pointers to write to them.
> 
> var
>    P: PPoint;
> begin
>    P := AlignedArray[0];
>    P.X := 3; // can be okay
>    AlignedArray[0].Y := 4;  // can be okay as well

That only works in {$mode delphi}


Jonas



More information about the fpc-devel mailing list