Re: #loop adjustments

Eugene <[email protected]> Thu, 10 Nov 2005 11:16:47 +0300
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
On Wed, 9 Nov 2005 19:29:09 -0600 (CST)
  will guaraldi <[email protected]> wrote:
>
>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.

By the way, what will it do now for the

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

? Is it going to do

say 1
say 4

or

say 1
say 2
say 3
say 4

?

--
Eugene
---
Professional hosting for everyone - http://www.host.ru


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