|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
make it so /var works the way it does now (with the =) and the way /set works (without the =)
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
/var typically does work without needing a '=', but it is not recommended.
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
that's what i mean, it's incorrect syntax, but most of the time you can get away with it. make it correct syntax
New username: hixxy
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
To make it correct syntex, Khaled would have to make use with '=' incorrect, otherwise data that starts with '=' would become corrupt.
/var %var = is the equals sign. echo -a %var = is the equals sign.
I'm of the opinion Khaled should do the exact opposite. Make it so you can optionally use '=' in /set, and the '=' wont be placed into the variable. Then /set %var = data would become the accepted standard, and people will use it as such.
- Raccoon
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
i'm sure he could do the equivilent of: alias var { if $2 != = { varstuff $2- } elseif $2 == = { varstuff $3- } }
New username: hixxy
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
I would like to be able to /set %a one,%b two (or /set %a = one,%b = two, not fussed about that )
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
ditto. and definitely /inc %x 1, %y 1, %z 1
Well. At least I won lunch. Good philosophy, see good in bad, I like!
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
I'm of the opinion Khaled should do the exact opposite. Make it so you can optionally use '=' in /set - But then any scripts using set with = as the start of the value will become incorrect. Same goes for commas if a /set %var1 value1, %var2 value2 syntax was implemented (although it would be great if inc/dec had that ability). IMO all that really needs to be done is make the /var entry in the helpfile clearly state something like ' use = you lazy bastards'. Problem solved.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Nov 2003
Posts: 2,327
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2003
Posts: 2,327 |
it's not that i'm lazy, it's that i've never used it before and it takes some getting used too
New username: hixxy
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Oh yeah and definitely for /inc|/dec as well!
|
|
|
|
Joined: Jan 2003
Posts: 428
Fjord artisan
|
Fjord artisan
Joined: Jan 2003
Posts: 428 |
IMO all that really needs to be done is make the /var entry in the helpfile clearly state something like 'use = you lazy bastards'. Problem solved Absolutely agree PM
IRCnet & DALnet @#travelersinn :-: IRC for fun and relaxation :-:
|
|
|
|
Joined: Apr 2003
Posts: 342
Fjord artisan
|
Fjord artisan
Joined: Apr 2003
Posts: 342 |
I'm of the opinion Khaled should do the exact opposite. Make it so you can optionally use '=' in /set, and the '=' wont be placed into the variable. Then /set %var = data would become the accepted standard, and people will use it as such. I agree, set should use = too. It would be nice if you could declare global "set" variables like you can with var. People who use VAR without an = are fools. I suggest you define all you local variables at the top of alias/event/ect. mIRC is so full of inconsistancies it's really sad.
Beware of MeStinkBAD! He knows more than he actually does!
|
|
|
|
|