Better alias features? - 09/02/08 12:30 PM
Well, I think the current alias features miss one little feature, to make it work a little like the /timerTimerName command.
For example, say, I'm writing some PHP-like script commands, so I'd like to have the ability to create variables this way:
on *:text:*:*: {
$somevar = sometext
}
However, that is not possible. Sure, I could make the $ alias,
alias $ {
...
}
(Yes, I know it's already reserved for an internal identifier, but that's not the point right now.)
The thing is, I can't, like, return $right() or $left() of the command itself, to set the identifier. At the moment, the only way this whole thing could work, would be with:
on *:text:*:*: {
$ somevar = sometext
}
Which pretty much beats the point of it.
I might be wrong, there might be a way to do it, but I don't know one, that's for sure.
I'd love some opinions on this, and I'm very open to anything.
Thanks!
For example, say, I'm writing some PHP-like script commands, so I'd like to have the ability to create variables this way:
on *:text:*:*: {
$somevar = sometext
}
However, that is not possible. Sure, I could make the $ alias,
alias $ {
...
}
(Yes, I know it's already reserved for an internal identifier, but that's not the point right now.)
The thing is, I can't, like, return $right() or $left() of the command itself, to set the identifier. At the moment, the only way this whole thing could work, would be with:
on *:text:*:*: {
$ somevar = sometext
}
Which pretty much beats the point of it.
I might be wrong, there might be a way to do it, but I don't know one, that's for sure.
I'd love some opinions on this, and I'm very open to anything.
Thanks!