April 24, 2011
11:10 a.m.
I read what I wrote on the exception chapter and also the comments of the ensure: method and I do not get why
error are not causing ensure block to trigger. only after you either abandon or proceed, an ensure block will be executed.
to me it completely defeats the purpose of ensure: or ifCurtailed: Evaluate a termination block after evaluating the receiver, regardless of whether the receiver's evaluation completes. So when should ensure: be used? if I get an error because of a file problem will it be triggered? I do not see how this is working in that case Stef