From: Gary Wright Date: 2008-03-07T01:22:48+09:00 Subject: Re: the value in ensure block is not returned On Mar 6, 2008, at 10:46 AM, Oliver Peng wrote: > So it is obviously that all codes in ensure block have been run. > But the > return value is always the last value before ensure block. That is the intended semantics. The ensure block doesn't generate a return value for the method. It is intended to contain code that should be executed if the method returns normally or if the method is rolled up during exception processing. Gary Wright