[fpc-pascal] Check In Interface Type Helpers

Sven Barth pascaldragon at googlemail.com
Wed Aug 23 17:14:01 CEST 2017


Am 23.08.2017 16:59 schrieb "Marcos Douglas B. Santos" <md at delfire.net>:
>
> On Wed, Aug 23, 2017 at 11:07 AM, Anthony Walter <sysrpl at gmail.com> wrote:
> > Here is another example:
> >
> > type
> >   TDay = (Monday = 0, Tuesday, Wednesday, Thursday, Friday, Saturday,
> > Sunday);
> >
> >   TDayHelper = record helper for TDay
> >     function AsByte: Byte;
> >     function ToString: string;
> >   end;
>
> I didn't know that helpers could be used in enums too. Great.

Helpers for primitive types are supported since 3.0.0.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170823/96cbafc5/attachment.html>


More information about the fpc-pascal mailing list