[fpc-devel] TObject differences between fpc and delphi

Michael Van Canneyt michael at freepascal.org
Tue Oct 27 15:31:25 CET 2009



On Tue, 27 Oct 2009, Florian Klaempfl wrote:

> Paul Ishenin schrieb:
>> I have compared what d2010 TObject has and found a few differences:
>>
>> 1. Dispatch method is virtual
>> 2. new method: class function UnitName: string;
>> 3. new method: function Equals(Obj: TObject): Boolean; virtual;
>> 4. new method: function GetHashCode: Integer; virtual;
>> 5. new method: function ToString: string; virtual;
>>
>> Documentation:
>> http://docwiki.embarcadero.com/VCL/en/System.TObject.Dispatch
>> 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
>>
>> Which of that changes are welcome for FPC?
>
> Since we opened the d2010 can of worms anyways, I think all would be
> accepted.

I was going to say the same :-)

Although I think that  TObject.ToString will give a lot of problems
for things like tiOPF...

On the other hand, UnitName may come in handy for the Lazarus IDE.

Michael.



More information about the fpc-devel mailing list