<div>My question is: Why repeat the error exit code again and again? If used wisely, using goto statements can reduce the in a function by a few bytes and reduce the number of points of change. Intead of having to look for all the error code scattered in a function, the error code is in one spot where you don't have to change sevel lines of code scadered throughout a fuction just to change the exiting behavior.
<br> </div>
<div>"Crashfourit"<br> </div>
<div><span class="gmail_quote">On 9/28/05, <b class="gmail_sendername">Richard Campbell</b> <<a href="mailto:eek2121@comcast.net">eek2121@comcast.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hate to throw my 2 cents in, but why use macros or goto statements at<br>all? None of the demonstrated code actually needs a goto statement to
<br>work. Granted i've not seen the actual offensive code , but all<br>examples here can be written without goto statements or macros. Why<br>bother using either? At any rate, i'm inclined to agree that macros are<br>a bad idea. Hiding a mess behind a preprocessor is considered bad
<br>coding practice.<br><br>Richard<br><br>Gunnar Dalsnes wrote:<br><br>><br>>>> Yes, but how is this different from someone not<br>>>> knowing/understanding that a finally block is called when returning
<br>>>> from a try block?<br>>><br>>><br>>><br>>> That's a compiler language feature. That's like saying that learning<br>>> some 3rd party macro is equivalent to what operator new does in C++.
<br>><br>><br>> The new operator is just a word as anything else. Just because its a<br>> compiler feature doesnt make it "magic". It just means that every C++<br>> compiler should reserve and support it just like we can say ReactOS
<br>> reserve and support Xxx for usage Xxx. And you can overload new u<br>> know. Then you never know what it _really_ does;-P<br>><br>>><br>><br>>><br>>> I also learnt and remember English. But I chose not to learn Zimbabwean.
<br>><br>><br>> It this context it would be "Zimbabwean sound so weird I refuse to<br>> learn it. Zimbabwean is flawed and ppl should stop speaking it. They<br>> should learn English instead so I can understand them."
<br>><br>>><br>><br>>><br>>> instead of having the cleanup code quadriplicated.<br>><br>><br>> At least we agree on something.<br>><br>> So then Im free to apply that schema thruout ros? Or will I then get:
<br>> "gotos sux", "please dont do this", "it looks so ugly", "i refuse to<br>> do it this way" etc?<br>><br>>><br>>><br>>> That's really a flawed statement. Learning and using these macros
<br>>> won't change their inner deficiencies as being flow control macros.<br>><br>><br>> They are just as deficient as the goto example you showed ei. equivalent.<br>><br>>> Learning and using them will just propagate a frowned-upon
<br>>> programming practice.<br>><br>><br>> Just because someone else says you should do so doesnt make it right.<br>> Thinking for urself (open mind) and not caring about what others says<br>> ("the standard") can be a relief.
<br>><br>>> Your argument is much like saying "I'm sure if you all used<br>>> uninitialized variables you'll like them".<br>><br>><br>> It depends. In Java they would;-P<br>><br>>>
<br>>>><br>><br>> G.<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>><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><P>My DeviantArt.com page: <A href="<a href="http://crashfourit.deviantart.com/"">http://crashfourit.deviantart.com/"
</a>><a href="http://crashfourit.deviantart.com/">http://crashfourit.deviantart.com/</a></A><BR>My FanFiction.net bio page: <A href="<a href="http://www.fanfiction.net/u/726606/"">http://www.fanfiction.net/u/726606/"
</a>><a href="http://www.fanfiction.net/u/726606/">http://www.fanfiction.net/u/726606/</a></A><BR>My Blog: <A href="<a href="http://crashfourit.blogspot.com"/">http://crashfourit.blogspot.com"
</a>><a href="http://crashfourit.blogspot.com/">http://crashfourit.blogspot.com</a></A><BR>America's Debate: <A href="<a href="http://www.americasdebate.com/"">http://www.americasdebate.com/"
</a>><a href="http://www.americasdebate.com/">http://www.americasdebate.com/</a></A> </P>