diff options
author | Patrik Nyblom <[email protected]> | 2010-09-20 16:28:48 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-09-20 16:28:48 +0200 |
commit | 31f85c90ac02cfa8bd6c60fb8d940acbeeeea904 (patch) | |
tree | d1e2282bc40011ed82cd1c13f069efdf9112a4c3 /lib/compiler | |
parent | c1eb8a0b776634422cd9fe3cf6083d25d5b568d0 (diff) | |
download | otp-31f85c90ac02cfa8bd6c60fb8d940acbeeeea904.tar.gz otp-31f85c90ac02cfa8bd6c60fb8d940acbeeeea904.tar.bz2 otp-31f85c90ac02cfa8bd6c60fb8d940acbeeeea904.zip |
Correct description of no_auto_import compiler directive
Diffstat (limited to 'lib/compiler')
-rw-r--r-- | lib/compiler/doc/src/compile.xml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml index e1f24b602d..c3d65b4cb5 100644 --- a/lib/compiler/doc/src/compile.xml +++ b/lib/compiler/doc/src/compile.xml @@ -310,9 +310,9 @@ (there will not even be a warning if there is a mismatch).</p> </item> - <tag><c>{no_auto_import,[F/A, ...]}</c></tag> + <tag><c>{no_auto_import,[{F,A}, ...]}</c></tag> <item> - <p>Makes the function <c>F/A</c> no longer beeing + <p>Makes the function <c>F/A</c> no longer being auto-imported from the module <c>erlang</c>, which resolves BIF name clashes. This option has to be used to resolve name clashes with BIFs auto-imported before R14A, if one wants to @@ -323,8 +323,12 @@ without module prefix to local or imported functions before trying auto-imported BIFs. If the BIF is to be called, use the <c>erlang</c> module prefix in the call, not - <c>{ no_auto_import,[F/A, ...]}</c></p> + <c>{ no_auto_import,[{F,A}, ...]}</c></p> </note> + <p>If this option is written in the source code, as a + <c>-compile</c> directive, the syntax <c>F/A</c> can be used instead + of <c>{F,A}</c>. Example:</p> + <code>-compile({no_auto_import,[error/1]}).</code> </item> </taglist> |