comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » CATCH inside a FOR loop and out?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: CATCH inside a FOR loop and out? [message #88379 is a reply to message #88378] Thu, 17 April 2014 15:06 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, April 17, 2014 2:56:31 PM UTC-6, Craig Markwardt wrote:
> On Thursday, April 17, 2014 4:27:53 PM UTC-4, Mike Galloy wrote:
>
>> CATCH is a routine, not a keyword currently. I, personally, don't think
>
>> it would be so bad to add a keyword or two for nice exception handling.
>
>
>
> True, but it's a system routine that everybody knows to avoid for their own routines already.
>
>
>
>> Also, if you add something, I think it should have an optional "finally"
>
>> clause as well.
>
>
>
> I never understood the purpose of FINALLY, when you can just have cleanup code outside the exception handling clauses. Is it more than a visual cue?
>
>
>
> Craig

At least in Java, the Finally code is guaranteed to run, even if your "try" or "catch" block does a return from the routine.
-C
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DLM "unload"?
Next Topic: traces plot outside of x-axis boundaries

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:11:17 PDT 2025

Total time taken to generate the page: 0.00188 seconds