mIRC Home    About    Download    Register    News    Help

Print Thread
Tired of appending $cid to variables #988 10/12/02 09:41 PM
Joined: Dec 2002
Posts: 14
N
namnori Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2002
Posts: 14
Is anyone else spend a lot of time adding [ $+ [ $cid ] ] to variable names to make things work properly across multiple connections?
Maybe there should be a different prefix, instead of '%', to limit a variable's scope to the $cid in which it was called.

Re: Tired of appending $cid to variables #989 10/12/02 09:44 PM
Joined: Dec 2002
Posts: 24
D
DarkStarX Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: Dec 2002
Posts: 24
What's tyhe difference if the variable prefix was '%' or somethign else? I don't see the point of your suggestion =\

Plus, if you changed the prefix of a variable, do you have any idea how many scripts that would break lol

Regards,


-DarkStarX
"If at first you don't succeed, sky diving's not for you."
Re: Tired of appending $cid to variables #990 11/12/02 07:08 AM
Joined: Dec 2002
Posts: 66
GrimZ Offline
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 66
I'd just prefer a different method of making global variables (ie, specifiying them to be), otherwise they'd all defautly assume the local scope.



- Linux System Administrator, Darktides Communications, LLC.
Re: Tired of appending $cid to variables #991 12/12/02 04:07 AM
Joined: Dec 2002
Posts: 30
A
arps Offline
Ameglian cow
Offline
Ameglian cow
A
Joined: Dec 2002
Posts: 30
So just make your own set alias, thats the purpose of scripting.
alias mset set $+($1,.,$cid) $2-
/mset %huh wut
%huh.1 wut