[fpc-pascal] Union field after property violates "field before property" rule + property of union field not possible.

Jean SUZINEAU jean.suzineau at wanadoo.fr
Mon Aug 15 15:19:49 CEST 2022


May the solution to your problem should be just :

  TDataExample
  =
   record
     case integer
     of
       0: (mData: Int64);
       1: (mByte: packed array[0..7] of Byte);
       2: (UnionField: Int64);
   end;

?

You aren't going to define a getter or setter method on your property, 
just an "alias" to mData ?



More information about the fpc-pascal mailing list