mIRC Homepage
Posted By: Wims $* + tabulation in editbox - 25/04/07 07:10 PM
when i put $* in the editbox and i evaluate it with tabulation, it return `~$* in the editbox instead of $* ( because it should not be evaluated )
Posted By: b1ink Re: $* + tabulation in editbox - 25/04/07 09:23 PM
You might find this useful.
Posted By: hixxy Re: $* + tabulation in editbox - 25/04/07 10:36 PM
This bug report has nothing to do with mishandling $*
Posted By: Khaled Re: $* + tabulation in editbox - 26/04/07 03:05 PM
Thanks this has been fixed for the next version.
Posted By: Wims Re: $* + tabulation in editbox - 26/04/07 07:08 PM
It's great but it's very strange how $* works.
I really would like to see $* works as the other identifier, without odd things or at least have an explanation about why he works like that.



Posted By: Khaled Re: $* + tabulation in editbox - 27/04/07 12:06 PM
$* was added before the scripting language supported while and goto loops, to allow scripts to iterate a command over a set of values. $* is purposefully no longer documented. Instead of $* you should use while or goto loops.
Posted By: Mpdreamz Re: $* + tabulation in editbox - 27/04/07 03:52 PM
For us mIRCscripts obsessed why exactly does it evaluate to`~$* ?
I have always wondered that.
Posted By: Wims Re: $* + tabulation in editbox - 27/04/07 04:24 PM
i already know that but $* is more faster than a while smile
There is no chance to see $* works correctly ?
Posted By: Om3n Re: $* + tabulation in editbox - 27/04/07 06:26 PM
How are you claiming that $* does not work as intended, aside from the $*<tab> bug that was already reported as fixed.
Posted By: Wims Re: $* + tabulation in editbox - 27/04/07 07:29 PM
Hum, just because $* doesn't works like other $ident, you can't use it without space around it, have to use /scon -r to be evaluted.I know that it's not a bug, i just would like can use it whitout scon -r and space, like the other.
Posted By: Sat Re: $* + tabulation in editbox - 27/04/07 10:27 PM
Quote:
why exactly does it evaluate to `~$* ?

In short, the `~$* text that $* evaluates to, acts as a marker to allow for search-and-replace of this marker (with $1, $2, etc) after the evaluation of the line is fully complete. What the marker looks like is not important, as long as it can't reasonably be the result of the evaluation of anything other than $*. `~$* is "weird" enough to fulfill that requirement.
Posted By: qwerty Re: $* + tabulation in editbox - 27/04/07 11:42 PM
And here's a confirmation of this, along with two other (mostly unimportant) observations:
//tokenize 32 a b c | var %a = `~$* | echo -a $* :: %a :: `~$*THIS_WILL_BE_GONE :: NOT_REPLACED:`~$*

On a related note, the following doesn't work as expected:
//tokenize 32 a b c | echo -a $* $upper(d e)
(gives "`~$* D E")
This happens when there's a literal space in an identifier parameter.
Posted By: maroon Re: $* + tabulation in editbox - 30/04/07 03:29 AM
Even though this topic is dealing with editbox, I gather this is related to why I was seeing only the 1st nick instead of all 3 highlighted nicks when I add line to nicklist menu:

.Op +o ( $$1 $2 $3 ): mode # +ooo $$1 $2 $3

and when I changed to:

.Op +o ( $* ): mode # +ooo $$1 $2 $3

I was seeing the `~$* in the menu label, regardless whether 1 or 3 nicks are highlighted.
© mIRC Discussion Forums