[Mono-list] exception semantics
Morten Sylvest Olsen
mortenolsen@mail.com
Mon, 28 Jan 2002 21:48:43 +0100 (CET)
Hi..
Whats the current state of the interpreter?
I tried to run the following code (compiled with ms csc.exe):
...
try {
Console.WriteLine("In try");
throw new Exception();
//return(1);
}
catch (Exception e) {
Console.WriteLine("In catch");
return(2);
}
finally {
Console.WriteLine("In finally");
}
and got:
In try
In catch
No execution of the finally block happens.
Whats the concensus on the exception semantics? I was discussed back in
August, but I couldn't glean any conclusion whether a finally block is
supposed to be executed before or after the exception handler.
- Morten
Novinson's Revolutionary Discovery:
When comes the revolution, things will be different --
not better, just different.
----------------------------------------------------------
email: morten@bergsoe.k-net.dk,c958496@student.dtu.dk
addresse: Bergsøe Kollegiet v. 1105 2850 Nærum
----------------------------------------------------------