Re: erlang:is_builtin(erlang,apply,3) = false

Björn Gustavsson <[email protected]> Wed, 7 Oct 2015 08:20:24 +0200
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CA+yh78RepW9oVG-wi68jWaJ9TFcog3YRbqFHekc4sexJjSsnXw@mail.gmail.com>
On Wed, Apr 9, 2014 at 7:06 PM, Stavros Aronis <[email protected]> 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
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs