On 13 Sep 2011, at 14:52, Graeme Geldenhuys wrote:

On 13/09/2011 14:33, Jonas Maebe wrote:

No, he's saying that it should not be easy to do this accidentally. I
can imagine that in IDEs that evaluate everything your mouse cursor
happens to hoover over, automatic evaluation of getters with side
effects can be quite an annoyance.

Again, I have not heard of a single developer complain about this in any of the Delphi groups or forums. So I guess the "annoyance" level is > 1%

Maybe that's because the evaluation of properties is disabled by default and you have to explicitly enable it exactly because that can cause side effects. At least that was apparently the case in 2006: http://www.skylark-software.com/2006/01/why-are-some-object-properties-zero-in.html


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to