1. RE: comparison stacks

> -----Original Message-----
> From: Kat [mailto:gertie at PELL.NET]

> <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"".

You can accomplish this through routine_id.  Set up an associative list.
One sequence holds your values, the other the routine id's.  Then, you can
use find() (or a b-search, etc) to determine where to go.  It's also easy to
add to.  I used this scheme in matheval (in the archives) to parse and
evaluate mathematical expressions.

Matt Lewis

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu