I think that both would be great: just as there is $event, there should be $alias for returning the name of the current alias ($alias() already exists, but that shouldn't get in the way, just as $server and $server() coexist.)

I can also see a use for finding out where the current alias was called, which was the original suggestion. Something different would have to be done for aliases called from events/editboxes, though. I would think it should return "on <event>" for calls from events and "edit box" for those from editboxes, the idea being that an alias name can't be two words.


If I knew now what I will know then... maybe things will have been different...