[fpc-devel] Less global variables
Adem
listmember at letterboxes.org
Sat Oct 9 15:53:32 CEST 2010
On 2010-10-09 16:22, Hans-Peter Diettrich wrote:
> The variables have been replaced by (getter) functions, with some
> added procedures for updating their values - this is where
> getter/setter pairs are inapplicable for structured types, or require
> too many consequential changes for using pointers instead of plain
> variables. If somebody can suggest a less intrusive solution, more
> global variables can be moved.
Would you consider turning those structured types into objects?
Properties with getter/setter pairs would make tracing (placing a
breakpoint in the getter/sertter would help identify the caller) easier.
Cheers,
Adem
More information about the fpc-devel
mailing list