Maybe I misunderstand your intention, but what nesting do you need? Wouldn't this work the same way, with only one level of indentation:
N=2 <pre> res1 = grabRes(); if (grabbed(res1))
res2 = grabRes(); if (grabbed(res2)) {
do_stuff();
ungrab(res2); } if (grabbed(res1)
ungrab(res1); </pre>
Could be easily rewritten to have a loop that does it all (two loops to be honest, one for ungrabbing, unless you want hard to analize code with one loop doing it all;) )
Yup:
"Article 5
General information to be provided
1. In addition to other information requirements established by Community law, Member States shall ensure that the service provider shall render easily, directly and permanently accessible to the recipients of the service and competent authorities, at least the following information: [...]"
Check out the EU Directive
Maybe I misunderstand your intention, but what nesting do you need? Wouldn't this work the same way, with only one level of indentation:
;) )
N=2
<pre>
res1 = grabRes();
if (grabbed(res1))
res2 = grabRes();
if (grabbed(res2))
{
do_stuff();
ungrab(res2);
}
if (grabbed(res1)
ungrab(res1);
</pre>
Could be easily rewritten to have a loop that does it all (two loops to be honest, one for ungrabbing, unless you want hard to analize code with one loop doing it all
Yup: "Article 5 General information to be provided 1. In addition to other information requirements established by Community law, Member States shall ensure that the service provider shall render easily, directly and permanently accessible to the recipients of the service and competent authorities, at least the following information: [...]" Check out the EU Directive