[fpc-pascal] Check In Interface Type Helpers
Sven Barth
pascaldragon at googlemail.com
Wed Aug 23 19:50:08 CEST 2017
Am 23.08.2017 19:40 schrieb "Anthony Walter" <sysrpl at gmail.com>:
>
> Sven, multiple helpers would be greatly appreciated, especially
considering everyone wants to add their own helpers for types like string.
At least in FPC modes they can use inheritance to solve this (see below) or
by putting their units after the SysUtils unit (at least if they don't
want/need the helper provided in the SysUtils unit).
=== code begin ===
type
TMyStringHelper = type helper(TStringHelper) for String
// whatever
end;
=== code end ===
Note: Delphi supports inheritance only for class helpers, but FPC supports
it also for record and type helpers.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170823/f3b8804f/attachment.html>
More information about the fpc-pascal
mailing list