On Wed, 6 Feb 2013, Mattias Gaertner wrote:
On Wed, 06 Feb 2013 10:49:36 +0100
Sven Barth <[email protected]> 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 - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel