[fpc-pascal] with statement using mulltiple objects
mailinglists at geldenhuys.co.uk
Sun Sep 14 17:06:48 CEST 2014
On 2014-09-14 11:49, Sven Barth wrote:
> Though to be honest Lazarus handles with-statements in context of debugging
> much more gracefully than Delphi...
We all know Lazarus is way better that Delphi - so that's always good to
As already mentioned, human refactoring of WITH statements can, and has,
caused lots of debugging issues afterwards. Two or more classes used in
a with statement, both classes have the same property name - how the
hell must the developer know (and the compiler for that matter) which
one is meant where. Bottom line (for me), WITH gives more trouble than
its worth, so I avoid it at all costs.
- Graeme -
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
More information about the fpc-pascal