[fpc-devel] TObject differences between fpc and delphi

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Oct 27 19:50:52 CET 2009


2009/10/27 Thaddy <thaddy at thaddy.com>:
> 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.

Based on the documentation available at Embarcadero, TObject.ToString
is very simple - it just returns the ClassName by default.

------------------------------------
For example, calling System.TObject.ToString on a TButton instance
returns a string containing "TButton".
-------------------------------------

Obviously the developer can override it and return more details, but
by default it's the same as 'ClassName' property


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list