On Tue, 23 Apr 2019, Ryan Joseph wrote:

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?

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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to