[Lazarus] Thanks to FPC team: Record helper for primitive types!
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Sat Nov 29 18:42:44 CET 2014
Bart wrote:
> On 11/29/14, silvioprog <silvioprog at gmail.com> wrote:
>
>
>> { TIntegerHelper }
>>
>> function TIntegerHelper.ToString: string;
>> begin
>> Result := IntToStr(Self);
>> end;
>>
>> ...
>>
>> var
>> I: Integer = 123;
>> begin
>> WriteLn(I.ToString); // Prints 123
>> end.
>
> Looks like Java.
>
> Bart
Are you going to be the one to hack FPC's macro facility to define { and
} as begin and end? :-)
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list