question about switch, return, break

From: Kingmundi (Kingmundi@AOL.COM)
Date: 12/19/97


i was going through some of my compiler warning messages,
specifically  some unreachable code messages,
all of it follows the same format as the following example,

switch (mode) {
  case SCMD_DROP:
    obj_to_room(obj, ch->in_room);
    return 0;
    break;
  case SCMD_DONATE:

i was wondering why the switch statements all follow the practice
of following return0  with a break statement?  is it a precaution?


     +------------------------------------------------------------+
     | 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