[fpc-devel] please make TField.SetDataset virtual

Paul Ishenin webpirat at mail.ru
Fri May 30 13:25:27 CEST 2008


Joost van der Sluis wrote:
> Thanks, committed.
>   
Big thanks.

I have some questions though.

1. There is no support for BCD in TField:

    function GetAsBCD: TBcd; virtual;
    procedure SetAsBCD(const Value: TBcd); virtual;
    property AsBCD: TBcd read GetAsBCD write SetAsBCD;


2. And few methods have 'word' arguments instead of 'integer':
delphi:
    function GetDataSize: Integer; virtual;
    procedure SetSize(Value: Integer); virtual;
fpc:
    procedure SetSize(AValue: Word); virtual;
    function GetDataSize: Word; virtual;

I suppose that adding empty methods for BCD support will not hurt while 
changing type of Size methods can break some fpc applications. Is that 
Size incompatibility is by design?

Best regards,
Paul Ishenin.



More information about the fpc-devel mailing list