[erlang-bugs] erlang:is_builtin(erlang,apply,3) = false

Björn Gustavsson bjorn@REDACTED
Wed Oct 7 08:20:24 CEST 2015


On Wed, Apr 9, 2014 at 7:06 PM, Stavros Aronis <aronisstav@REDACTED> wrote:
> Hello!
>
> Title says everything. Is this intentional?
>
> 1> erlang:is_builtin(erlang,apply,3).
> false
>

May not be intentional, but erlang:apply/3 is a strange
creature which is not implemented in the same way
as all other BIFs. Part of apply/3 is in implemented
in erlang.erl:

apply(Mod, Name, Args) ->
    erlang:apply(Mod, Name, Args).

(This Erlang code will be called if you apply apply/3.)

What do you think? Should erlang:is_builtin(erlang, apply, 3)
return true? If so, why?

/Björn

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



More information about the erlang-bugs mailing list