[erlang-questions] clarify: variable as function name

Bjorn Gustavsson <>
Tue Dec 11 12:11:35 CET 2007


"Andreas Hillqvist" <> writes:

> But I guess it would be simple for the OTP team to add a "real"
> make_fun(Module, Function, Arity) function that creates an EXPORT_EXT
> (113) to a module i.e. the erlang module.

There already is an erlang:make_fun/3 BIF. Not documented, though.

1> erlang:make_fun(c, i, 0).
#Fun<c.i.0>
2> 

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list