[fpc-pascal] Bug in FPC 3.0.0 (was: Bug in FPC 3.0.0?)
Sven Barth
pascaldragon at googlemail.com
Wed Feb 24 17:24:55 CET 2016
Am 24.02.2016 12:30 schrieb "Bo Berglund" <bo.berglund at gmail.com>:
>
> On Tue, 23 Feb 2016 23:58:37 +0100, Sven Barth
> <pascaldragon at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160224/a0979f21/attachment.html>
More information about the fpc-pascal
mailing list