question about switch, return, break
From: Kingmundi (Kingmundi@AOL.COM)
Date: 12/19/97
- Next message: The Merciless lord of Everything: "HEDIT.."
- Previous message: David Klasinc: "Re: stock bpl11 bug"
- Next in thread: John Evans: "Re: question about switch, return, break"
- Maybe reply: John Evans: "Re: question about switch, return, break"
- Maybe reply: Sean Butler: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Maybe reply: Blue Lang: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Maybe reply: Blue Lang: "Re: question about switch, return, break"
- Maybe reply: David Klasinc: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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 |
+------------------------------------------------------------+
- Next message: The Merciless lord of Everything: "HEDIT.."
- Previous message: David Klasinc: "Re: stock bpl11 bug"
- Next in thread: John Evans: "Re: question about switch, return, break"
- Maybe reply: John Evans: "Re: question about switch, return, break"
- Maybe reply: Sean Butler: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Maybe reply: Blue Lang: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Maybe reply: Blue Lang: "Re: question about switch, return, break"
- Maybe reply: David Klasinc: "Re: question about switch, return, break"
- Maybe reply: George: "Re: question about switch, return, break"
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
This archive was generated by hypermail 2b30
: 12/08/00 PST