<div class="gmail_quote">On Mon, Feb 18, 2013 at 8:02 AM, Lukasz Sokol <span dir="ltr"><<a href="mailto:el.es.cr@gmail.com" target="_blank">el.es.cr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Maybe he one and true answer for all of the above would be to have:<br>
<br>
try vs try<br>
try except<br>
try finally<br>
except except<br>
end; end;<br>
finally<br>
end;<br>
except<br>
end;<br>
<br>
so with except being optionally allowed either side of 'finally' ?<br>
<br></blockquote></div>I haven't actually tried this, but what would this do?<br><br>try<br> try<br> except<br> end;<br>finally<br> try<br> except<br> end;<br>end;<br><br>If this is what is really desired, is this a good construct?<br>
<br>try<br> ...<br>except<br> ...<br>finally<br> ...<br>except<br> ...<br>end;<br><br> I don't care for the meaning of "except" looking to be contextual, but is it really? Reading that, to me it looks mostly predictable how the logic would have to work. I guess the only question is whether the finally code is executed if the try code has an exception. If this isn't desired, could a "break" be used in the first except to cause the finally to be skipped?<br>
<br>Jeff.<br>