[fpc-devel] Re: Converting records back and forth. (Forward declarations for records needed ?!?)

Flávio Etrusco flavio.etrusco at gmail.com
Tue Sep 20 15:29:17 CEST 2011


And this feature can be implemented with operators, but this is
discussion for fpc-pascal, I guess.

-Flávio

On Tue, Sep 20, 2011 at 9:52 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
> 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
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>



More information about the fpc-devel mailing list