Using smaller functions instead when we are only using the code once, may help on readability but can cost speed and space. (Think of what standard code C uses to enter and exit a function.) But then again, you can get around that by using declaring those functions as inline.
<br><br>
<div><span class="gmail_quote">On 9/28/05, <b class="gmail_sendername">Casper Hornstrup</b> &lt;<a href="mailto:ch@csh-consult.dk">ch@csh-consult.dk</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>&gt; The alternative is: do the cleanup at every return, use goto or use<br>&gt; try/finally.<br>&gt; 1)Cleanup at every return is madness. Most functions in ros do a large
<br>&gt; amount of cleanup at each return and I sometimes spot mistakes where<br>&gt; one/more return misses some cleanup. Those errors are _hard_ to find.<br><br>The functions are too large then. Use more smaller functions instead.
<br><br>Casper<br><br><br>_______________________________________________<br>Ros-dev mailing list<br><a href="mailto:Ros-dev@reactos.com">Ros-dev@reactos.com</a><br><a href="http://reactos.com:8080/mailman/listinfo/ros-dev">
http://reactos.com:8080/mailman/listinfo/ros-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>&lt;P&gt;My DeviantArt.com page: &lt;A href=&quot;<a href="http://crashfourit.deviantart.com/&quot;">http://crashfourit.deviantart.com/&quot;
</a>&gt;<a href="http://crashfourit.deviantart.com/">http://crashfourit.deviantart.com/</a>&lt;/A&gt;&lt;BR&gt;My FanFiction.net bio page: &lt;A href=&quot;<a href="http://www.fanfiction.net/u/726606/&quot;">http://www.fanfiction.net/u/726606/&quot;
</a>&gt;<a href="http://www.fanfiction.net/u/726606/">http://www.fanfiction.net/u/726606/</a>&lt;/A&gt;&lt;BR&gt;My Blog: &lt;A href=&quot;<a href="http://crashfourit.blogspot.com&quot;">http://crashfourit.blogspot.com&quot;
</a>&gt;<a href="http://crashfourit.blogspot.com">http://crashfourit.blogspot.com</a>&lt;/A&gt;&lt;BR&gt;America's Debate: &lt;A href=&quot;<a href="http://www.americasdebate.com/&quot;">http://www.americasdebate.com/&quot;
</a>&gt;<a href="http://www.americasdebate.com/">http://www.americasdebate.com/</a>&lt;/A&gt; &lt;/P&gt;