[fpc-devel] TObject differences between fpc and delphi
Thaddy
thaddy at thaddy.com
Tue Oct 27 15:39:19 CET 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.
>
Yes, but..
Canned food can contain preservatives that are not always healthy.
The ToString Javaism is poorly implemented in Delphi. I suggest that
objfpc mode should be based on json or similar standards, which are
already available. Not just rtti writeouts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20091027/3f22acd4/attachment.html>
More information about the fpc-devel
mailing list