Another thing regarding array properties. If I use constref on the setter I get 
an error "Illegal symbol for property access”. Is there any reason why the 
setter can’t be constref? If not I’d like to change this with my array 
properties patch. Making it inline properly avoids the copy but you may not 
want inline and just want to avoid the copy during setting.

     function GetValue(index: integer): T; inline;
     procedure SetValue(index: integer; constref value: T); inline; // “T” is a 
record so we want constref here
     property PrivateValues[index: integer]: T read GetValue write SetValue; 
default; // ERROR: Illegal symbol for property access

Regards,
        Ryan Joseph

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to