mIRC Home    About    Download    Register    News    Help

Print Thread
#199690 19/05/08 06:58 PM
Joined: May 2007
Posts: 37
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2007
Posts: 37
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,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Two different threads...


Invision Support
#Invision on irc.irchighway.net
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Three if you count the original post referenced in the second link


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Oops, missed that link.


Invision Support
#Invision on irc.irchighway.net
Joined: May 2007
Posts: 37
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2007
Posts: 37
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2004
Posts: 162
R
RRX Offline
Vogon poet
Offline
Vogon poet
R
Joined: Jan 2004
Posts: 162
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