[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33217] Matlab's try, ...; catch EXCEPTION, ..
From: |
Gokberk |
Subject: |
[Octave-bug-tracker] [bug #33217] Matlab's try, ...; catch EXCEPTION, ...; end doesn't work (no support for caught error) |
Date: |
Tue, 03 Jan 2012 08:40:33 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.25) Gecko/20111212 Firefox/3.6.25 |
Follow-up Comment #1, bug #33217 (project octave):
I think this is an important compatibility issue.
my_caught_error() is a nice idea but it is rather risky. If there are more
than one try-catch block in a workspace, it will not work properly unless the
user is careful enough to clear my_caught_error. For example:
try,
TRYBLOCK_1;
catch my_caught_error;
CATCHBLOCK; % using my_caught_error instead of lasterror
end
try,
TRYBLOCK_2;
catch my_caught_error;
% my_caught_error is not valid, it is still the error structure generated
at TRYBLOCK_1.
end
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33217>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #33217] Matlab's try, ...; catch EXCEPTION, ...; end doesn't work (no support for caught error),
Gokberk <=