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