Let me begin by saying hello all, again. It's been 3 years since I last was
on the list. I'm starting up a MUD again, and was working on a major
overhaul to stock. I'm past the initial stages, and was working on cleaning
up and enhancing the code and wondered which is faster and which saves more
memory between if/elseif/else and switches.
either:
if (option="alpha")
elseif (option="beta"0
...
else
-or-
switch(LOWER (option[0]){
case "a":
case "b":
...
}
BTW I gotta mention this, as it took me 117 man hours to complete (and I am
SO proud of it): I converted EVERY flag to extended bitvectoring! No more 32
flag limit! (I am using an int, which has a cap of 32767, but i could always
go to unsigned or double if i needed more than that) By EVERY I mean EVERY
flag.. not just affect/act/comm flags... 8^)
Thanks in advance for any help as to my 'stupid' question about something
inherent to C. (If it helps, I use gcc to compile)
MudProgrammer...
HEAVILY Modified Rom2.4b6:OLC2.01+Custom Enhancements, Custom Color, Custom
Clan System, Custom VT100 Extensions, 20 Races, 50 Tier'd Classes