[Lazarus] OOP basics - 2

José Mejuto joshyfun at gmail.com
Wed Apr 14 22:59:21 CEST 2010


Hello Lazarus-List,

Wednesday, April 14, 2010, 9:58:45 PM, you wrote:

JM> Lazarus core itself has such code. Earlier I tried to understand Designer,
JM> ControlSelection and Object Inspector code. They are highly interdependent,
JM> for logical reasons. References to core classes were typecasted in many places
JM> in code, clearly to avoid circular reference.
JM> Some files are also very big which is one way to avoid circular reference.

Many of this "problems" can be solved with some refactoring like
creating a base class for the 2 or 3 different classes. It's known
that sometimes this is impossible because you already must use a base
class already defined like TWinControl or any other.

-- 
Best regards,
 José





More information about the Lazarus mailing list