When having bigger scripts, organisation becomes more important, aliases get prefixes in their names and are grouped according to those prefixes (and thus script part/feature), and the amount reusable code (aliases called from everywhere (across script parts/features) increases.

These latter reusable-code-aliases play a keyrole in debugging and error reporting, because they allow to centralize debugging/error reporting code (similar to the reusability of them).
In this aspect, it's a pity that there is nothing there that refers to the place these aliases are called from.
And in the other direction, there is no such thing as an identifier that returns the name of the alias the code belongs too.
I find this a major shortcoming.
Abit similar to not having a $sockname in a socket event and thus being forced to hardcode the socket name in the socket events codes.
The only current way (that I know of) to do this is:
Code:
alias blabla_blabla {
if ($insufparscheckaliasname(blabla_blabla,8,$1-)) { return }
...
}

Notice how the blabla_blabla occurs twice here.

It would be handy to have some identifier in an alias that returns the name of the called alias (maybe $calias - similar to $ctimer) AND/OR another identifier that returns the name of the alias the code belongs to.
That would eliminate all the hardcoding.

That identifier should be 'local', similar to /var local variables and $1-, in opposite to most identifiers like $filtered $v1 etc since those can be altered by called code. This might be something 'special' in mIRC and thus harder to implement.

Last edited by RRX; 10/05/09 09:00 AM.