mIRC Home    About    Download    Register    News    Help

Print Thread
#45087 30/08/03 06:41 AM
Joined: Aug 2003
Posts: 72
V
visionz Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
alias bleh {
/* bleh */
if (1) {
doshit
}
}

There seems to be a bracket mis-matched somewhere around line 1.

That's the bug with the new comment system

#45088 30/08/03 07:01 AM
Joined: Dec 2002
Posts: 266
Z
Fjord artisan
Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 266
Yep same over here.


You won't like it when I get angry.
#45089 30/08/03 07:21 AM
Joined: Dec 2002
Posts: 349
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 349
Seems that, seeing as Khaled envisioned people using /* */ comments for multiple lines, as soon as the script parser sees a /* it jumps to the next line and begins looking for a */ - therefore completely missing the closing */ if it happens to be on the same line.

Maybe we'll see mIRC 6.11 very soon :P

#45090 30/08/03 07:24 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Yes, apparently /* */ comments only work multiline. Btw, there's a little typo in the help file:

You can add comments to your scripts by using the ; semi-colon at the start of a line, or /* and */ to enclose test


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#45091 30/08/03 08:53 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Heh, worst of all... I can't tell if you're suppose to be able to use /* */ on a single line or not.

84.Can now use /* and */ to comment out multiple lines in an alias,
    popup, or script. Each be used alone on a single line.


A. "Each must be used alone on a single line." (different lines?)
B. "Each can be used alone, or both on a single line."

Who's to say.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#45092 30/08/03 10:21 AM
Joined: Jun 2003
Posts: 17
D
Pikka bird
Offline
Pikka bird
D
Joined: Jun 2003
Posts: 17
I'm guessing he meant to say "must" or "should"... seems unlikely that he'd leave out three whole words in a sentence.

#45093 31/08/03 01:34 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
"Each should be used alone on a single line." That doesn't make much sense either.

If he meant this, it should read...

"Each should be used together on a single line." or
"Each should be used alone on different lines."


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard