Unused functions.

Francesco Cesarini francesco@REDACTED
Wed Feb 5 09:46:45 CET 2003


If you call your functions using apply, you have to export then anyhow. 
Not exporting them will give you a run time error.


Saluti,
Francesco
--
http://www.erlang-consulting.com

Pierpaolo BERNARDI wrote:

> Hello,
> 
> 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.
> 
> Now, this is not a serious problem: adding a -compile(export_all) 
> solves it, but maybe there's a cleaner way?
> 
> Cheers
> Pierpaolo
> 
> 
> 
> 





More information about the erlang-questions mailing list