[fpc-pascal] Compiler error passing a Property as a parameter

Vincent Snijders vincent.snijders at gmail.com
Mon Jun 9 09:14:46 CEST 2014


2014-06-08 21:50 GMT+02:00 Graeme Geldenhuys <mailinglists at geldenhuys.co.uk>
:

> Hi,
>
> I think it was FPC 2.6.0 that changed the language rules about
> Properties. You can't pass them directly as a var parameter, can't
> assign to a property of a property etc.
>
> Anyway, somebody recently asked my why this was implemented, and I can't
> actually remember the exact rational behind the FPC team's decision.
>
> Does anybody have a link to the documentation or FPC discussion on this?
> I'm looking for info on what was so bad about the old behaviour etc. and
> if this was another Delphi compatibility change or not?
>
>
See reason:
http://wiki.freepascal.org/User_Changes_2.4.0#Treating_direct-mapped_properties_as_regular_fields

Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140609/af84ce66/attachment.html>


More information about the fpc-pascal mailing list