On Wed, 6 Feb 2013, Mattias Gaertner wrote:

On Wed, 06 Feb 2013 10:49:36 +0100
Sven Barth <pascaldra...@googlemail.com> wrote:

[...] Hello Free Pascal community!

=== example begin ===

var
   i: LongInt;
begin
    Writeln(i.ToString);
end.

And how is toString declared?

Something like

type
  TLongIntHelper = type helper for LongInt
    function toString : AnsiString;
  end;

function TLongIntHelper.toString : AnsiString;

begin
  Result:=IntToStr(Self);
end;

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to