aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-05-12 14:26:30 +0200
committerBjörn Gustavsson <[email protected]>2014-05-12 14:37:22 +0200
commit7ff17ddfd337d1c49c1174d8d24b2ce0671b2c9e (patch)
treec5bd1ae2ec0d187b6a7f89cbee1acfd23f29a261 /erts/doc/src
parent80a528ae9ca670cad91eccf97b385baf67b09981 (diff)
downloadotp-7ff17ddfd337d1c49c1174d8d24b2ce0671b2c9e.tar.gz
otp-7ff17ddfd337d1c49c1174d8d24b2ce0671b2c9e.tar.bz2
otp-7ff17ddfd337d1c49c1174d8d24b2ce0671b2c9e.zip
BIFs should be considered exported
All BIFs now have stub functions and are exported. For example in the erlang module: -export([..., is_list/1, ...]). . . . is_list(_Term) -> erlang:nif_error(undefined). But erlang:function_exported(erlang, is_list, 1) returns false, which is weird. Change erlang:function_exported/3 to return true for BIFs.
Diffstat (limited to 'erts/doc/src')
-rw-r--r--erts/doc/src/erlang.xml9
1 files changed, 5 insertions, 4 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 0f4dfc0f98..03d184f4d2 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -1252,10 +1252,11 @@ true
<fsummary>Check if a function is exported and loaded</fsummary>
<desc>
<p>Returns <c>true</c> if the module <c><anno>Module</anno></c> is loaded
- and contains an exported function <c><anno>Function</anno>/<anno>Arity</anno></c>;
- otherwise <c>false</c>.</p>
- <p>Returns <c>false</c> for any BIF (functions implemented in C
- rather than in Erlang).</p>
+ and contains an exported function <c><anno>Function</anno>/<anno>Arity</anno></c>,
+ or if there is a BIF (a built-in function implemented in C)
+ with the given name; otherwise returns <c>false</c>.</p>
+ <note><p>This function used to return false for built-in
+ functions before the 18.0 release.</p></note>
</desc>
</func>
<func>