[erlang-questions] newbie: why c.erl is special?

Richard Carlsson richardc@REDACTED
Wed Mar 5 12:29:01 CET 2008


Anthony Kong wrote:
> I personally would prefer a new directive called "import_as".
> 
> ======
> -module(lists). %% I want to call my module lists too.
> -import_as(lists, stdlib_lists).
> 
> ...
> lists:copycat() ->
>   stdlib_lists:reverse([a,b,c]). %% essentially calling lists:reverse([a,b,c])

I planned to implement exactly this, but never got around to it.
I'll fix it if I can find some spare time.

     /Richard





More information about the erlang-questions mailing list