[fpc-pascal] Record helper properties
Ryan Joseph
ryan at thealchemistguild.com
Tue Apr 23 23:40:14 CEST 2019
> On Apr 23, 2019, at 5:32 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>
> That should be obvious:
>
> Because a helper can only add methods to a type, not additional storage
> space (memory). The basic type determines the memory layout of the data. A helper cannot change that.
>
> Michael.
I mean for properties though so it’s not actually adding a type, just making an alias:
property F: integer read x;
that should just map “x” to “F”, right? I’m getting an error on this however.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list