#loop adjustments

will guaraldi <[email protected]> Wed, 9 Nov 2005 19:29:09 -0600 (CST)
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
I totally forgot that I'm not the maintainer anymore.  :p

Anyhow...  I just checked in a change to the #loop command adding the 
ability to iterate over strings.  So it used to do:

    #loop {1,4} {say %0}

which would execute:

    say 1
    say 2
    say 3
    say 4

Now it does that and can also do something like this:

    #loop {tom,harry,pete,fred} {say hi, %0.} range=false

which would execute:

    say hi, tom.
    say hi, harry.
    say hi, pete.
    say hi, fred.

Someone mentioned adding something like this a while back, but I forget 
the details including why I (and it was probably me) negged the idea.

Anyhow, I added it.  It should work just fine with any prior use of 
#loop--this just adds additional behavior.

Hope it's ok with people.

Rock on!
/will


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php