Grant Grundler wrote:
My preference is to always declare variables in the smallest
scope possible...it makes maintaining the code easier and lets
gcc make more efficient use of registers (ie don't allocate stack
at all if it can be done in registers).

My personal preference is to keep functions small, with all variable declarations at the top of the function, where they're easier to locate. I find declarations scattered throughout code makes the code more difficult to maintain.

- Sean
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to