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