D
Dick Brown
Hi
As far as I understand 11.6 (6) of the Ada 95 Reference Manual, Ada
implementations may "lose" information, where exactly an exception has
been raised. I'm not sure whether I understand Ada in that regard, but
that's off-topic anyways (if someone wants to correct me there, I'd be
grateful nonetheless).
Something like:
try
{
int i = 0;
if (...) throw(i);
int i = 1;
if (...) throw(i);
int i = 2;
}
catch (...)
{
// i may be 0 or 1 or 2, no matter which throw(i) has brought us here
}
Now the real question: Does C++ have any similar provisions? I've found
nothing in the standard, am I right there?
Have a nice weekend
Dick
As far as I understand 11.6 (6) of the Ada 95 Reference Manual, Ada
implementations may "lose" information, where exactly an exception has
been raised. I'm not sure whether I understand Ada in that regard, but
that's off-topic anyways (if someone wants to correct me there, I'd be
grateful nonetheless).
Something like:
try
{
int i = 0;
if (...) throw(i);
int i = 1;
if (...) throw(i);
int i = 2;
}
catch (...)
{
// i may be 0 or 1 or 2, no matter which throw(i) has brought us here
}
Now the real question: Does C++ have any similar provisions? I've found
nothing in the standard, am I right there?
Have a nice weekend
Dick