diff --git a/ChangeLog b/ChangeLog index 6545b78..fb0beb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Version 0.2.1 [ NYR ] + * variable warning fix (not sure if this was needed, but anyway ...) + Version 0.2.0 * handle structured match statements (duh) diff --git a/fw-pkgin/config b/fw-pkgin/config index 033617c..ba15024 100644 --- a/fw-pkgin/config +++ b/fw-pkgin/config @@ -2,7 +2,7 @@ # environment variable FW_PACKAGE_DEFAULT_MAINTAINER if non-empty FW_PACKAGE_NAME="lyet" -FW_PACKAGE_VERSION="0.2.0" +FW_PACKAGE_VERSION="0.2.1" FW_PACKAGE_MAINTAINER="Paul Mineiro " FW_PACKAGE_SHORT_DESCRIPTION="Erlang parse transform to provide let like functionality." FW_PACKAGE_DESCRIPTION=`cat README` diff --git a/src/lyet.erl b/src/lyet.erl index 1df62ba..e5a3972 100644 --- a/src/lyet.erl +++ b/src/lyet.erl @@ -139,6 +139,9 @@ xform({M,F,A}, Fun, Forms, Context0) -> {Fname, Arity} = erl_syntax_lib:analyze_function(Form), VarNames = erl_syntax_lib:new_variable_names( Arity, + fun (N) -> + list_to_atom ("_V" ++ integer_to_list (N)) + end, erl_syntax_lib:variables(Form)), {Form, [{function, Fname}, {arity, Arity}, diff --git a/tests/Makefile.am.local b/tests/Makefile.am.local index fb15b0d..d8f126d 100644 --- a/tests/Makefile.am.local +++ b/tests/Makefile.am.local @@ -1,2 +1,4 @@ TESTS = \ module-testlyet + +testlyet.beam: testlyet.erl ../src/lyet.beam