Translations:Development/KDevelop-PG-Qt Introduction/114/en

From KDE TechBase

Instead of polluting the global context with state tracker variables, and hence destroying the whole advantages of OOP, you can add additional members to the parser class. It's also very convenient to define functions for error reporting etc. pp. Again a stripped example from PHP: