extend TObject to have new d2009 methods
Original Reporter info from Mantis: PaulIsh
-
Reporter name: Paul Ishenin
Original Reporter info from Mantis: PaulIsh
- Reporter name: Paul Ishenin
Description:
Starting from D2009 TObjects has:
- class function UnitName: string;
- function Equals(Obj: TObject): Boolean; virtual;
- function GetHashCode: Integer; virtual;
- function ToString: string; virtual;
Documentation:
http://docwiki.embarcadero.com/VCL/en/System.TObject.UnitName
http://docwiki.embarcadero.com/VCL/en/System.TObject.Equals
http://docwiki.embarcadero.com/VCL/en/System.TObject.GetHashCode
http://docwiki.embarcadero.com/VCL/en/System.TObject.ToString
The patch implements this for the FPC TObject. It is splitter into 3 files:
- to change RTL, compiler and packages. The reason that not only RTL was changed is that this new methods conflicts with the old code. Also UnitName method returns empty string if class has no rtti. If the patch of the issue #14930 (closed) is applied then UnitName always returns non-empty string.
Mantis conversion info:
- Mantis ID: 14931
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 14005 (#dfef902c)