xref

Sean Hinde Sean.Hinde@REDACTED
Mon Apr 29 10:59:55 CEST 2002


> 
> Peter H|gfeldt <peter@REDACTED> wrote:
>  >
>  > On Fri, 26 Apr 2002, Joe Armstrong wrote:
>  >
>  > You just made a very trivial programming error:
>  >
>  > >  add_libs(P, L) ->
>  > >     foreach(fun(I) ->
>  > >                 Dir = code:lib_dir(stdlib) ++ "/ebin",
>  >                                      ^^^^^^   
>  >                   Dir = code:lib_dir(I) ++ "/ebin",
> 
> 
> Coming from a Prolog background, it never ceases to amaze me why
> the Erlang compiler (and experienced Erlang programmers) insist
> on having singleton variable warnings turned off...

Could it be because they are almost undocumented? All I could find was a
mention in the compiler release notes and an entry in erl_lint (which I have
never even opened before, and probably wouldn't if it didn't appear in a
documentation search on "warn_unused_vars")

Perhaps R9 will bring a list of ALL useful compiler flags into the COMPILER
documentation.

Sean



NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.




More information about the erlang-questions mailing list