[erlang-questions] lists:member/2 and erlang:function_exported/3 conflict

Maruthavanan Subbarayan maruthavanan_s@REDACTED
Thu Apr 25 08:06:33 CEST 2013

Guess I got the answer as "erlang:function_exported" would 
Returns false for any BIF (functions implemented in C rather than in Erlang).
So lists:member/2 would have been implemented in C.
Sorry for the noise.
Regards,MaruthaFrom: maruthavanan_s@REDACTED
To: erlang-questions@REDACTED
Date: Thu, 25 Apr 2013 02:02:19 -0400
Subject: [erlang-questions] lists:member/2 and erlang:function_exported/3	conflict

Why "erlang:function_exported(lists,member,2)" gives me false where as the function is exported?
15> erlang:function_exported(lists,member,2).false16> proplists:lookup(member, element(2,proplists:lookup(exports,lists:module_info()))).{member,2}
Tried with some other functions randomly but got true. I tried with R14B and R16B. Is there any hidden reason behind it?

erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130425/e4d2fd50/attachment.htm>

More information about the erlang-questions mailing list