[erlang-questions] Erlang Core problem with Erlang < R12B

Roberto Saccon rsaccon@REDACTED
Wed Mar 26 21:16:39 CET 2008


I am working on a Javascript Flavoured Erlang in Core Erlang.
Everything goes fine as long as I stay with R12B0 or R12B1.

to compile, after core_lint:module/1 succeeds, I simply do:

compile:forms(Core, [from_core, return_errors]).

E.g. with the following CoreForm:

    Core = {c_module,
               [],
               {c_literal,[1],js_comments},
               [{c_fname,[1],erlyjs_global,0}],
               [{{c_literal,[0],checksum},
                 {c_literal,
                     [0],
                     [106,
                      138,
                      45,
                      226,
                      222]}}],
               [{{c_fname,[0],erlyjs_global,0},
                 {c_fun,[0],[],{c_literal,[],<<"todo">>}}}]}.



But with Erlang < R12B I now get errors like this:

{error,
    [{".",
      [{none,
           compile,
           {crash,
               transform_module,
               {function_clause,
                   [{compile,
                        compile_options,
                        [{c_module,
                             [],
                             {c_literal,[1],js_comments},
                             [{c_fname,[1],erlyjs_global,0}],
                             [{{c_literal,[0],checksum},
                               {c_literal,[...],...}}],
                             [{{c_fname,[...],...},{c_fun,...}}]}]},
                    {compile,transform_module,1},
                    {compile,'-internal_comp/4-anonymous-1-',2},
                    {compile,fold_comp,3},
                    {compile,internal_comp,4},
                    {compile,internal,3}]}}}]}],
    []}


anybody knows what is different between those Erlang releases in
regard to Erlang Core ?

-- 
Roberto Saccon
http://rsaccon.com



More information about the erlang-questions mailing list