mIRC Home    About    Download    Register    News    Help

Print Thread
#64192 16/12/03 02:44 PM
Joined: Jan 2003
Posts: 6
C
Crash Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2003
Posts: 6
hello,

I've got some wishes:
- breaking $finddir/$findfile
- change $sound(type) (returns the sound-dir) to $sounddir
- Remove or fix /* */-Comments, there are really buggy frown
- /logdir and /sounddir to change the standard dirs

#64193 16/12/03 07:43 PM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
As an alternative to $sounddir, there is already $mp3dir, $wavedir and $mididir

#64194 16/12/03 11:40 PM
Joined: Jan 2003
Posts: 6
C
Crash Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2003
Posts: 6
You mean $sound(mp3)? Okay, forget the $sounddir-Identifer, $sound(type) is nice wink

#64195 17/12/03 12:10 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
just curious, what do you find so buggy about /* */ comment blocks?


-KingTomato
#64196 17/12/03 01:44 PM
Joined: Jan 2003
Posts: 6
C
Crash Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2003
Posts: 6
alias test {
/* Comment Test */
echo -a $1-
}
produces bracket mis-matches smirk
alias test {
return $1- /* test */
}
Returns $1- and the comment. This sucks smirk

#64197 17/12/03 01:50 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
From the help file:
Quote:

Comments
You can add comments to your scripts by using the ; semi-colon at the start of a line, or /* and */ to enclose text.
;This is a comment
/*
This is a comment
*/


/* This is not a comment */
the /* needs to have a line of its own as does /*

#64198 17/12/03 01:51 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
alias test {
/* Comment Test */
echo -a $1-
}
produces bracket mis-matches smirk

From the mIRC helpfile:
/*
This is a comment
*/

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


Quote:
alias test {
return $1- /* test */
}
Returns $1- and the comment.

It's exactly the same with ";", you're not complaining about that.

#64199 17/12/03 02:34 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Thank you both, i appreciate the helpfile plug >:P I was going to do the same thing, so you saved me the trouble. grin

Original Author:
As seen, they belong on their own line. The point of /* */'s is the ability to do a multi line comment. If you want something like /* Comment */, use ;'s.


-KingTomato
#64200 20/12/03 12:42 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Although the /* */ comment block *is* bugged, or at least inconsistent (since it's recommended to use /* and */ alone anyway):

/* this
will
*/ work.


* cold edits his posts 24/7

Link Copied to Clipboard