Unused functions.

Matthias Lang matthias@REDACTED
Wed Feb 5 07:57:37 CET 2003


Pierpaolo BERNARDI writes:

 > is there a way to tell the compiler not to evict apparently 
 > unused functions?  
 > 
 > I have a bunch of functions that are called only via apply. 
 > The compiler warns that these functions are unused and 
 > removes them.

Apply can only call exported functions.

The compiler is doing the right thing. It is removing functions which
you cannot possibly call. See also the manual entry about 'apply':

  http://www.erlang.org/doc/r9b/lib/kernel-2.8.0/doc/html/erlang.html

Matthias



More information about the erlang-questions mailing list