Quasar
Moderator

Posts: 2202
Registered: 08-00 |
The problem is that console commands are not interpreted anything like scripts; they are parsed and each command is run consecutively, back to back. Delays may be queued up between the commands as they are buffered, but the entire command must be parsed immediately. That means that alias resolving is not deferred to the time of command execution. That's why recursive aliases cause stack overflow.
I think I see what you're trying to do, and I don't think it'll work with the way the console currently functions. As you may or may not know depending on whether you've read the Eternity changelog and stuff in here, the entire console is way overdue for a rewrite. I don't know when or how it will happen, but it WILL happen eventually.
|