mIRC Home    About    Download    Register    News    Help

Print Thread
#199690 19/05/08 06:58 PM
C
Chessnut
Chessnut
C
Apologies if this has been pointed out before, I'd be very surprised if it hasn't been, but I wasn't able to find it with a forum search.

The bug is with nested while loops on the same line of code. The following script fails when executed on a single line (terminates after the first iteration), but succeeds when spread out onto multiple lines:

Code:
alias test var %s 3 | while (%s) { var %a 3 | while (%a) { dec -s %a } | dec -s %s }


Fails, whereas:

Code:
test2 {
  var %s 3 
  while (%s) {
    var %a 3
    while (%a) {
      dec -s %a
    }
    dec -s %s 
  }
}


works as expected.

mIRC Version: 6.31

Joined: Jul 2006
Posts: 4,022
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,022
I'm sure i've seen a post concerning this bug, maybe not in "bug reports".


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 1,997
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,997

Although I can't find it now because of a limit on search results, this has been reported and is known by Khaled. It's annoying that I couldn't find the thread because I was involved in the thread, but now it will only return max 100 results it seems. I don't think it's always been that way.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Two different threads...

Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
Three if you count the original post referenced in the second link

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Oops, missed that link.

C
Chessnut
Chessnut
C
My bad, I didn't search for topics older than 3 years (didn't realise it had been an issue for so long).

Last edited by Chessnut; 20/05/08 01:01 PM.
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
No problem. I was just linking to them so people could read up on what was said already. Not in complaint of not searching or anything like that. smile

I swear there was something more recent, though... within the past 6 months. Oh well.

R
RRX
RRX
R
Originally Posted By: Chessnut
My bad, I didn't search for topics older than 3 years (didn't realise it had been an issue for so long).

bromvlieg told you!


Link Copied to Clipboard