Am 24.02.2016 12:30 schrieb "Bo Berglund" <bo.bergl...@gmail.com>:
>
> On Tue, 23 Feb 2016 23:58:37 +0100, Sven Barth
> <pascaldra...@googlemail.com> wrote:
> >
> >What would really help here would be the warning that Jonas mentioned...
> >For the above you could just use a local variable and be done with it. No
> >need to try to "fix" the with-statement.
>
> I really fully agree!
> When working a few years back I had to trace through a piece of code
> where the original author had done something like:
>
> with My.Stuff.something do
>   with My.Other.Stuff.somethingelse do
>     with myyetanother do
>     begin
>       someproperty := xxx;
>       ....
>       ....
>     end;
> It was totally impossible to make sense of anything while debugging!

Just as a sidenote: Lazarus handles withs correctly while debugging ;)

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to