[Lazarus] Circular references and code quality

Juha Manninen juha.manninen62 at gmail.com
Tue Oct 4 13:24:24 CEST 2011


2011/10/4 Martin <lazarus at mfriebe.de>
>
> Only I needed the variable in MainIdeIntf, as some units, which needed it,
> were themself already used by MainIdeBase
> So I changed the variable in MainIdeBase to be a property (property outside
> of class declaration). That way it was easy to move it to another class, yet
> all code could still access it as wanted (and the property does the type
> cast once and for all.
>

That one looks interesting. I never used global properties myself.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111004/129adf53/attachment-0003.html>


More information about the Lazarus mailing list