Parse transformery (Was: Re: Calling internal functions - foo::bar() ?)

Luke Gorrie luke@REDACTED
Fri Sep 23 17:00:33 CEST 2005


Luke Gorrie <luke@REDACTED> writes:

> Of course I have hacked the shell to support this interface (patch
> below) but it can also be used in a more klunky way:

MY GOD I NEED TO LEARN TO PROGRAM.

> --- erl_eval.erl.orig	2005-03-08 01:40:58.000000000 +0100
> +++ erl_eval.erl	2005-03-08 02:20:00.000000000 +0100
> @@ -396,7 +396,32 @@
>  %%	ExternalFuncHandler = {value,F} | none.
>  %% MF is a tuple {Module,Function} or a fun.
>  
> -do_apply(Func, As, Bs0, Ef, RBs) ->
> +do_apply({Mod,Func}, As, Bs0, Ef, RBs) ->
[ ... ]
> +    end.
> +
> +do_apply1(Func, As, Bs0, Ef, RBs) ->

You don't need to be a dializer to see that calling funs from my
erlang shell has been broken since march.

Updated erl_eval patch is attached in case someone is using the parse
transform. (I'm still stuck in R9B-0 land for the moment now.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: erl_eval.patch
Type: text/x-patch
Size: 1303 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050923/d521940e/attachment.bin>


More information about the erlang-questions mailing list