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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to