[erlang-bugs] erlang module not in sticky dir?

Björn Gustavsson bjorn@REDACTED
Mon May 12 12:35:12 CEST 2014


On Thu, May 8, 2014 at 2:01 PM, Loïc Hoguin <essen@REDACTED> wrote:
> There's also this which is just odd.
>
> essen@REDACTED (20) % erl
>
> Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [async-threads:10]
> [hipe] [kernel-poll:false]
>
> Eshell V6.0  (abort with ^G)
> 1> erlang:function_exported(erlang, apply, 3).
> true
> 2> erlang:function_exported(erlang, is_map, 1).
> false
> 3> erlang:function_exported(erlang, is_list, 1).
> false
>

Yes, I agree. It's weird, especially since is_map/1
and is_list/1 are exported and have definitions in the
erlang module.

But since the documentation explicitly says that
erlang:function_exported/3 does not return true
for BIFs, and since it has behaved this way since
ancient times, we don't want to fix it in a minor
release. So we will fix it in 18.0.

/Bjorn

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



More information about the erlang-bugs mailing list