[fpc-devel] The usage of Include() doesn't work any more in 2.3.1
Michael Schnell
mschnell at lumino.de
Wed Jul 16 10:25:10 CEST 2008
> 2.3 prevents you form taking the address of a property, because that
> way you can read/write its value directly, circumventing the
> getter/setter. So you cannot use the @ operator, but neither can you
> pass properties to var parameters. Include is an internal procedure
> that calls an rtl function that receives the set as a "var" parameter,
> preventing include to work.
While this is obvious and of course using the address of a property
should issue an error message, it seems desirable id a way is provided
to allow using it in case that there is no getter or setter method. As
this is defined in the interface of the component's unit, the calling
code _does_ know about that fact. (Of course it's bad style as updating
the called component will brake the caller's code and a Warning would be
appropriate.)
-Michael
More information about the fpc-devel
mailing list