> On Apr 4, 2021, at 12:10 PM, Sven Barth via fpc-pascal > <fpc-pascal@lists.freepascal.org> wrote: > > FieldAddress only works on published fields. Just like MethodAddress only > works on published methods. > > For private fields extended RTTI is required which is not yet implemented.
I don't understand this at all I guess. I thought the properties made them published and I get a "Symbol cannot be published, can be only a class" if I put the field itself in the published section. Just trying to do this: PInteger(theClass.FieldAddress('foo'))^ := 10; Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal