[Lazarus] Thanks to FPC team: Record helper for primitive types!

silvioprog silvioprog at gmail.com
Sat Nov 29 21:55:43 CET 2014


On Sat, Nov 29, 2014 at 4:54 PM, Michael Van Canneyt <michael at freepascal.org
> wrote:
>
> On Sat, 29 Nov 2014, silvioprog wrote:
>
>> On Sat, Nov 29, 2014 at 2:04 PM, Sven Barth <pascaldragon at googlemail.com>
>> wrote:
>>       On 29.11.2014 16:54, silvioprog wrote:
>>             Hello,
>>
>>             Today I compiled my FPC from trunk and saw the following
>> possibility:
>>
>>
>>       This feature is available since February 2013 already, you just had
>> to use {$modeswitch typehelpers}
>>       (I even announced that on fpc-devel, fpc-pascal and fpc-announce
>> back then). What I committed
>>       yesterday was simply to allow them by default in mode Delphi as
>> that mode is simply a collection of
>>       features supported by the current Delphi version (in so far they
>> are already implemented in FPC). You
>>       still have to use the modeswitch in other modes and in all modes
>> except the Delphi ones it's "type
>>       helper" instead of "record helper".
>>
>>       Regards,
>>       Sven
>>
>>
>> Awesome. I'll use type helper. =)
>>
>> Plans to implement the currently XE helpers? (TIntegerHelper,
>> TStringHelper etc.)
>>
>
> Definitely, as soon as I find time.
> But initial patches welcome.
>
> Michael.


Nice. To implement it we can need to enable the {$modeswitch typehelpers}.
Can you enable it in SysUtils?

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141129/1ecceba3/attachment-0003.html>


More information about the Lazarus mailing list