[erlang-questions] local renaming with a module attribute

Vlad Dumitrescu vladdu55@REDACTED
Fri Sep 10 19:02:34 CEST 2010


On Fri, Sep 10, 2010 at 18:48, Fred Hebert <mononcqc@REDACTED> wrote:
> I would like to discuss the idea of adding a new module attribute allowing
> to rename a module when doing explicit external calls (local renaming, if I
> can coin the term). The attribute -rename(long_module_name, name) would
> allow the programmer to use 'name' instead of 'long_module_name' inside a
> given module.

Hi!

What I usually use is

-define(mapping, robot_mapping).
...
   ?mapping:func(X)

I use lower-cased name on purpose in this case.

regards,
Vlad


More information about the erlang-questions mailing list