[fpc-devel] Re: Converting records back and forth. (Forward declarations for records needed ?!?)
Sven Barth
pascaldragon at googlemail.com
Tue Sep 20 14:52:33 CEST 2011
Am 19.09.2011 12:32, schrieb Skybuck Flying:
> Not sure if it compiles in free pascal, but it does compile in Delphi XE
> at least ;)
See here: http://wiki.freepascal.org/Helper_types
> // solution: record helper
> TrecordBhelper = record helper for TrecordB
> private
> // mData : double;
> public
> // property Data : double read mData write mData; // must be in TrecordB
> apperently ?!?
Helper types must not contain fields as they aren't instantiated.
Regards,
Sven
More information about the fpc-devel
mailing list