um... the extra breaks are redundant, but they are also good coding style. the
extra breaks are more of a note to yourself then to the compilier when they
follow a return statement.
______________________________ Reply Separator _________________________________
-+> Now, are those break statements needed? doesn't the function return,
-+> stop the function?
-+
-+No, and yes. The breaks are redundant. Take them out.
They might be redundant, but C requires they end a "case" statement. I
personally would right (write) it as:
switch (xx) {
case x: return xxx;
case x: return xxx;
case x: return xxx;
default:return xxx; break;
}
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST