mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 2,812
Raccoon Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
//alias apple if (boat) return $!upper($1-) | if (carrot) echo -a $v1 - $apple($v1) - $v1 | alias apple

or
Code:
alias apple { if (boat) return $upper($1-) }

//if (carrot) echo -a $v1 - $apple($v1) - $v1

Returns: carrot - CARROT - boat
Expected: carrot - CARROT - carrot

I wasn't aware that $v1 was global, transcending scope, like a global variable.

(Also, $result is always empty. $result should contain CARROT.)


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
$v1/v2 has always been global. Due to Khaled's consistency in not wanting to break backwards compatibility, I doubt that will change.

$result always being empty is a bug.


I am SReject
My Stuff

Link Copied to Clipboard