[erlang-bugs] erl_eval funs

Tony Rogvall <>
Sat Sep 7 01:14:28 CEST 2013


R16B01

The following code compile and works when in a module:

-module(m).
-export([f/0]).

f() ->
	fun abs/1.

> (m:f())(-3).
3

But
> > (fun abs/1)(-3).
** exception error: undefined function erl_eval:abs/1


/Tony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20130907/1fa76ef8/attachment.html>


More information about the erlang-bugs mailing list