diff options
author | Björn Gustavsson <[email protected]> | 2010-05-26 15:50:59 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-11-02 12:12:30 +0100 |
commit | 33c08d87a9395ae088eebcad9fb62193d26b6846 (patch) | |
tree | d7a8dfa400f0eb894f4343dc9cf74c67b8b54b2f /system/doc/reference_manual/expressions.xml | |
parent | b9e610cf12419c6ffe2c19df4f70009bd98ae50c (diff) | |
download | otp-33c08d87a9395ae088eebcad9fb62193d26b6846.tar.gz otp-33c08d87a9395ae088eebcad9fb62193d26b6846.tar.bz2 otp-33c08d87a9395ae088eebcad9fb62193d26b6846.zip |
Reference manual: Improve the documentation for external funs
Diffstat (limited to 'system/doc/reference_manual/expressions.xml')
-rw-r--r-- | system/doc/reference_manual/expressions.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml index c24b1110a4..4d211ae1d3 100644 --- a/system/doc/reference_manual/expressions.xml +++ b/system/doc/reference_manual/expressions.xml @@ -995,13 +995,16 @@ fun (Arg1,...,ArgN) -> Name(Arg1,...,ArgN) end</pre> <p>In <c>Module:Name/Arity</c>, <c>Module</c> and <c>Name</c> are atoms and <c>Arity</c> is an integer. A fun defined in this way will refer to the function <c>Name</c> - with arity <c>Arity</c> in the <em>latest</em> version of module <c>Module</c>. + with arity <c>Arity</c> in the <em>latest</em> version of module + <c>Module</c>. A fun defined in this way will not be dependent on + the code for module in which it is defined. </p> <p>When applied to a number N of arguments, a tuple <c>{Module,FunctionName}</c> is interpreted as a fun, referring to the function <c>FunctionName</c> with arity N in the module <c>Module</c>. The function must be exported. - <em>This usage is deprecated.</em> + <em>This usage is deprecated.</em> Use <c>fun Module:Name/Arity</c> + instead. See <seealso marker="#calls">Function Calls</seealso> for an example.</p> <p>More examples can be found in <em>Programming Examples</em>.</p> </section> |