[fpc-pascal] Food for thought - language string improvement
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Mon Jul 10 16:37:52 CEST 2017
On Mon, Jul 10, 2017 at 9:46 AM, Graeme Geldenhuys <
mailinglists at geldenhuys.co.uk> wrote:
> On 2017-07-10 13:34, Dmitry Boyarintsev wrote:
>
>> are you referring to "Catching More Than One Type of Exception with One
>> Exception Handler" in
>> https://docs.oracle.com/javase/tutorial/essential/exceptions/catch.html
>>
>
> Yes. You can have multiple catch blocks inside the same try block.
Well, this has been in FPC/Delphi from the start
Ultimately handling multiple exceptions in one catch block is the whole
purpose of having exception mechanism in a language.
You can also have a single catch block with a comma separated list of
> exception types.
>
I think it's actually Pipe separated.
And is that true, that the variable specified for catching such exception
would default to a common "Exception" class?
Not available in freepascal indeed.
> Then lastly, you can even add a finally block in there too
Also not available, but people are asking :
https://bugs.freepascal.org/view.php?id=24216
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170710/c4d690d6/attachment.html>
More information about the fpc-pascal
mailing list