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% I guess most "getters" do just the basic, return some field variable without data-changing effects - unlike the idiotic example of fetching a value from a database in a getter. There are MUCH better designs than that example given. [sorry to be harsh towards DaWorm, but that was a damn stupid example] Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel