[Lazarus] global items in TApplication

Graeme Geldenhuys graeme at geldenhuys.co.uk
Sun Sep 15 12:14:24 CEST 2013


On 2013-09-15 10:36, Graeme Geldenhuys wrote:
> class (and related unit) directly. This is called Dependency Injection -
> yet another software design pattern that removes hard-coded dependencies.


I forgot to mention, using Interfaces are also immensely useful in this
situation. Also makes it very easy to unit test such code.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list