Re: question about switch, return, break

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/19/97


On Fri, 19 Dec 1997, Kingmundi wrote:

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

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

I have no idea why that was done, personally I'd like to remove them.
They'll go especially if they cause compiler warnings.  Sounds like they
do. :)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


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