fun expressions and abstract forms

Yariv Sadan yarivvv@REDACTED
Fri Aug 18 06:23:22 CEST 2006


> C = smerl:new(foo),
> smerl:add_func(C, bar, fun() -> 1+1 end),
> smerl:compile(C),
> foo:bar(). % return 2
>

fix:

{ok, C1} = smerl:add_func(C, bar, fun() -> 1+1 end),
smerl:compile(C1)

Yariv



More information about the erlang-questions mailing list