Hello, you probably meant local aliases instead of local variables.
Not a bad idea, but it's typically the kind of thing that should be scriptable. Recently we got $fromeditbox and $caller which gives informations about which kind of context called the alias.
It must be noted that it has been suggested a countless number of time that scripters want the name of the alias that is calling the current alias, if it's an alias call.
I recently suggested to extend $caller to include that and informations about the calling filename if any and the scriptline number, if it were implemented, it would also allow you to create the situation you want, /returning the alias call if the filename calling is any you want/don't want. @Khaled I'd like to hear from you about why this was never added, please.