An over enthusiastic warning ?
Bjorn Gustavsson
bjorn@REDACTED
Wed May 24 11:42:48 CEST 2006
Roger Price <rprice@REDACTED> writes:
[...]
> It seems to me that these warnings should have been suppressed in view of
> the leading "_".
>
Using variables starting with underscore only suppress warnings
for unused variables.
To suppress warnings for shadow, you can add the following line to the generated
-compile(nowarn_shadow_vars).
module.
>
> [1] An implementation of the Augustsson/Wadler pattern matching compiler
> described in chapter 5 of "The implementation of functional programming
> languages" by Simon L Peyton Jones.
>
For learning purposes, I suppose?
The Beam compiler already implements that same algorithm.
/Bjorn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list