[erlang-bugs] R15B01 : lib:progname/0 of erlc is erl...

Thu Jun 7 22:32:50 CEST 2012

Le 07/06/2012 09:04, Bengt Kleberg a écrit :
> Greetings,
> The lib module is marked deprecated. This makes me wonder if you are
> willing to consider another less-than-production-quality solution?
> In that case, have you considered looking at arguments to distinguish
> erl vs erlc?
> Ex: On my system init:get_arguments/0 return both {mode,["minimal"]} and
> {boot,["start_clean"]} for erlc, but not erl.

 Hi Bengt,
I can not say that it is intellectually satisfying :>) but it will do
the trick... Thanks .
I forgot that lib was deprecated.

More generally speaking,
- do really need erlc to evaluate the ~/.erlang file at start ?
- Is there a plan to replace the lib module functions in another module
or in erts ? and so to have a simple way to know if erl or erlc is


More information about the erlang-bugs mailing list