On 13.09.2011 14:07, Graeme Geldenhuys wrote:
And yes the "inspecting properties could change data" is a moot point.
Delphi allows it, and NOBODY complains about the possible data change
issue. The pros far outweigh the cons. We are programmers, we should
know what is "dangerous" or not - but it should be our choice to use
such "dangerous" features.

Just as a sidenote: If I remember correctly Delphi doesn't allow you to inspect all getters. Once they are too complex it will display that the value can't be displayed. When I've done my bachelor thesis (this Thursday) I'll play around in my Delphi XE a bit to see whether I can pinpoint such situations. Perhaps Delphi is marking the getters as "pure" if there are no sideeffects (e.g. assignments besides Result, calls of non pure functions/methods etc.)

Regards,
Sven

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to