[fpc-pascal] Record helper properties

Sven Barth pascaldragon at googlemail.com
Wed Apr 24 00:25:31 CEST 2019


Ryan Joseph <ryan at thealchemistguild.com> schrieb am Di., 23. Apr. 2019,
21:54:

> So I remember now that any fields are not allowed in helpers. Can anyone
> explain why this must be the case or if it could be fixed?
>

A helper can not access its extended type in its interface, only in its
implementation (and yes, this gets important if published properties are
involved, which a helper may declare as well).
Use a getter as a workaround. If you use "inline" chances are high that it
will be nearly equal code as if you used a direct access.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190424/4b0bf002/attachment.html>


More information about the fpc-pascal mailing list