|
|
Joined: May 2004
Posts: 27
Ameglian cow
|
OP
Ameglian cow
Joined: May 2004
Posts: 27 |
an identifier like this... i think is a good idea.
|
|
|
|
Joined: Apr 2003
Posts: 701
Hoopy frood
|
Hoopy frood
Joined: Apr 2003
Posts: 701 |
Should that do something too? And if so, would you mind explaining it?
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
The problem with your suggestion is, (1) There is an identifier called that already, (2) we dont know what you expected it to return, (3) alias* is a valid alias name so may or maynot ment to be a wildcard.
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
Well it's blatantly obvious that he's suggesting that $isalias() accept a wildcard and a second, 'N', parameter to return info for the Nth matching alias name.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
(1) alias name is in use, WOULDNT seem a problem until you have a closer look at what alias names can be (see 3)
(2) I never said i didnt understand what he wanted it to do, i said "we dont know what you expected it to return" //echo -a $isalias(GLOB*,0) 4 //echo -a $isalias(GLOB*,1) $true or Global.rebuild.lists
(3) alias* is a valid alias name and not nessaserily a wildcard for that matter GLOB*,0 is a valid alias name alias GLOB*,0 { echo Mahahahaha } /GLOB*,0 Mahahahaha
* Ok ok you gotta be pretty wack to be using that as an alias name but well it is there!
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,962 |
The fact that wildcard characters and commas can be in alias names is not a problem. mIRC scripting's evaluation of identifiers requires that an alias name containing a comma couldn't be put in directly anyway. This means that the presence of a literal comma shows that the scripter is passing more than one parameter, at which point mIRC knows to treat wildcard characters appropriately instead of as plain-text. No problem here at all.
As for what it would return, well it seems pretty clear to use the basic logic behind every other N-parameter-driven identifier: $isalias(blah*,0) returns the number of matches; $isalias(blah*,N) returns info about the Nth matching alias.
Spelling mistakes, grammatical errors, and stupid comments are intentional.
|
|
|
|
|
|