[Gambas-user] Finally/Catch and Return: How is that meant to be used?
Gianluigi
gradobag at gradobag.it
Thu Sep 14 18:21:46 CEST 2023
Il 14/09/23 16:48, Martin Fischer ha scritto:
>>
>> I think (but I'm not sure) that this answer your question:
>>
>> http://gambaswiki.org/wiki/lang/finally?nl
>>
>> Regards
>>
>> Gianluigi
>>
>
> Gianluigi,
>
> thanks for the reference, but I'm aware of that already.
> My problem comes from this harmless looking paragraph in the document
> you referenced:
>
> This does not completely Ensure that code is run no matter what.
> If RETURN is used to exit a function before Finally then the
> Finally part will only run if an error is raised.
>
> This is a substantial deviation from "Finally"-semantics in other
> languages. This is why I'm surprised...
>
> Regards,
> Martin
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
Hi Martin,
Many thanks you for the explanations, but it seems to me that if all
languages have to follow dogmas why there is so many and all different?
Regards
Gianluigi
More information about the User
mailing list