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 #88377 is a reply to message #88371] Thu, 17 April 2014 13:27 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/17/14, 11:08 AM, Chris Torrence wrote:
> On Wednesday, April 16, 2014 1:50:44 PM UTC-6, Craig Markwardt
> wrote:
>>
>> No extra keywords required to be added to the language, no nuisance
>> variables, and cleaner flow. (and no backward compatibility
>> problems) The exception handler can look at any of the crumpteen
>> million !ERR* variables to decide what went wrong.
>>
>
> Crumpteen million! I like that. We should add that as an optional
> tick label for plots.
>
> We've thought about adding a "try/catch/finally" form of error
> handling, which would be similar to what you are proposing. But I
> like your idea of somehow re-using the existing reserved words. We've
> always pushed this feature to the bottom of the list because it was
> unclear how many people would make use of it. But it certainly fits
> in with "modernizing IDL", which has been our goal since IDL 8.0.
>
> Hmmm... Maybe now is the time.
>
> -Chris ExelisVIS
>

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.

Also, if you add something, I think it should have an optional "finally"
clause as well.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
[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 17:54:45 PDT 2025

Total time taken to generate the page: 0.00350 seconds