[fpc-pascal] Record helper properties
pascaldragon at googlemail.com
Wed Apr 24 00:25:31 CEST 2019
Ryan Joseph <ryan at thealchemistguild.com> schrieb am Di., 23. Apr. 2019,
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal