On Sat, Jul 14, 2018 at 1:54 PM, Martok <list...@martoks-place.de> wrote:
> Am 14.07.2018 um 20:41 schrieb Dmitry Boyarintsev:
>> Exiting from finally? Is it something new?0
>>
>> http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/devcommon/cm_cant_leave_finally_xml.html
> Still documented for Tokyo:
> <http://docwiki.embarcadero.com/RADStudio/Tokyo/en/E2126_Cannot_BREAK,_CONTINUE_or_EXIT_out_of_a_FINALLY_clause_%28Delphi%29>
>
> Although the example is of course wrong, the way it's given would be 'E2097
> BREAK or CONTINUE outside of loop'. Just substitute "break" with "exit".
>

Are they not allowed in a finally clause?

> 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.

Cheers,
     R0b0t1
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to