Re: comparison stacks
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Jun 11, 2001
- 341 views
> <sigh> > Ok, in the irc client, to handle the numerics from the server, the stack will > start with one "if", end with an "end if", and have *600* "elsif" in between. > Isn't that a little incredible? > Robert, with a "execute var" and a "goto", i could extract the numeric value, > then goto it. With smart code in the interpreter, or other error recovery, if > that > numeric isn't provided for, it simply returns"". > Also, the inability to make variable names using data is going to be a > smallish problem, when the irc client connects to two or more irc nets, has > an http open, and tries to send an email or three to pops at two different > isps > at the same time. > Recalling %connection. [ $+ [ %ircnet1 ] $+ . $+ [ %channel ] $+ . $+ [ > %oplist ] ] > is easier than looping thru all the possible variables untill the right tags > are > found, then reading that data and exiting the loop. Faster too. > Kat Maybe a whole bunch of elsifs isn't the way to go, how's about having a sequence of {commmand,routine_id} pairs then looping through to find the correct routine_id? That's how Hawke's EUServer does it afair.... Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying