[erlang-questions] Retrieve all auto-imported functions

Bengt Kleberg bengt.kleberg@REDACTED
Mon Jan 30 07:32:40 CET 2012


No answer, just removing a dead-end. Given a simple module(*) I get the
following:
5> t:module_info(imports).
[]


Perhaps this is Erlang/OTPs way to remind us to avoid -import()?


bengt

(*)
-module(t).
-export([t/0]).
-import(lists, [reverse/1]).
t() -> reverse([1,2,3]).


On Sun, 2012-01-29 at 19:40 +0100, José Valim wrote:
> Is there a way to retrieve all auto-imported functions in parse time
> and/or runtime?
> 
> 
> erlang:module_info(exports) also returns non auto-imported functions.
> 
> 
> Thanks in advance,
> 
> 
> José Valim
> www.plataformatec.com.br
> Founder and Lead Developer
> 
> 




More information about the erlang-questions mailing list