Property read/write cannot specify an array
Original Reporter info from Mantis: michael @mvancanneyt
-
Reporter name: Michael Van Canneyt
Original Reporter info from Mantis: michael @mvancanneyt
- Reporter name: Michael Van Canneyt
Description:
It's not possible to specify array elements as the field for a property.
The following error occurs
[Error] not yet implemented: :TParamsExpr [20160922163436]
not yet implemented: :TParamsExpr [20160922163436]
[Fatal Error] not yet implemented: :TParamsExpr [20160922163436]
Probably, a field of a record is also impossible.
Steps to reproduce:
unit a;
interface
Type
TMyClass = class(TObject)
private
XARR: Array[0..2] of Integer;
procedure SetXArr(const Value: Integer);
public
{ Public declarations }
property X: Integer read XARR[0] write SetXArr;
end;
implementation
procedure TMyClass.SetXArr(const Value: Integer);
begin
Xarr[0]:=Value;
end;
end.
Mantis conversion info:
- Mantis ID: 33416
- Version: trunk
- Monitored by: » lxpbuaa (lxpbuaa), » @lazidealist (Mattias Gaertner)