[fpc-devel] Issue #32913
J. Gareth Moreton
gareth at moreton-family.com
Sat Jul 14 22:56:16 CEST 2018
Slightly embarrassing, but I forgot some of the details because I put this on the
backburner for a few weeks. The Exit wasn't inside a "finally" section, but
inside the "try" part - however, the entire block was in an "except" section.
I'll double check that Exit is not allowed in the finally segment. Apologies!
Gareth aka. Kit
On Sat 14/07/18 21:58 , Sven Barth via fpc-devel fpc-devel at lists.freepascal.org sent:
> R0b0t1 schrieb am Sa., 14. Juli 2018, 21:11:
> > Control flow statements are allowed in an EXCEPT block. Come to think of
> it,
> > didn't we have another TRY/FINALLY/EXCEPT nesting issue that might have
> > something to do with that?
> >
>
> If the above is true then this confuses me. Except should run before
> finally, so if you use flow control in an except block then the
> finally clause "shouldn't" run.
>
> A "finally"-block is supposed to be executed no matter which way the
> "try"-part is left: normally, with an exception or by using exit
> ("goto"-statements with a target outside the block are not allowed).
> Regards, Sven _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel [1]
>
>
>
> Links:
> ------
> [1]
> http://secureweb.fast.net.uk/parse.php?redirect=http://lists.freepascal.org
> /cgi-bin/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list