mIRC Homepage

Tired of appending $cid to variables

Posted By: namnori

Tired of appending $cid to variables - 10/12/02 09:41 PM

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.
Posted By: DarkStarX

Re: Tired of appending $cid to variables - 10/12/02 09:44 PM

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,
Posted By: GrimZ

Re: Tired of appending $cid to variables - 11/12/02 07:08 AM

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.

Posted By: arps

Re: Tired of appending $cid to variables - 12/12/02 04:07 AM

So just make your own set alias, thats the purpose of scripting.
alias mset set $+($1,.,$cid) $2-
/mset %huh wut
%huh.1 wut
© 2020 mIRC Discussion Forums