Hi,
I'm new here. Just read this strange code block, and tried it.
But I can't explain why the result is...
As we knew, the flow still come to finally block and assign r = 2 even we have return r; in try block.
But the result that test() return is 1, not 2.
If we comment out "return r;" at finally block, the result will be 2.
Confused !
Anyone can explain it ? :-)
[ May 20, 2005: Message edited by: Jonathan Nguyen ]