diff options
author | José Valim <[email protected]> | 2013-10-18 12:05:46 +0200 |
---|---|---|
committer | José Valim <[email protected]> | 2013-10-18 12:37:35 +0200 |
commit | d2b412df6c8751c10de025399cb04a8194169d0d (patch) | |
tree | 8e7917590f4beb60302ed6c7ffa32a476b55c263 /lib/compiler/doc/src/compile.xml | |
parent | 73d1b4a1cc5ef1898b650fc74063ab28bc85bcbf (diff) | |
download | otp-d2b412df6c8751c10de025399cb04a8194169d0d.tar.gz otp-d2b412df6c8751c10de025399cb04a8194169d0d.tar.bz2 otp-d2b412df6c8751c10de025399cb04a8194169d0d.zip |
Allow all auto imports to be suppressed at once
This patch introduces the no_auto_import attribute:
-compile(no_auto_import).
Useful for code generation tools that always use the
qualified function names and want to avoid the auto
imported functions clashing with local ones.
Implementation wise, we chose to have a special flag
'all' to avoid doing many set lookups when checking for
suppression.
Diffstat (limited to 'lib/compiler/doc/src/compile.xml')
-rw-r--r-- | lib/compiler/doc/src/compile.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml index f1238f27a6..579612b531 100644 --- a/lib/compiler/doc/src/compile.xml +++ b/lib/compiler/doc/src/compile.xml @@ -402,6 +402,11 @@ module.beam: module.erl \ <code>-compile({no_auto_import,[error/1]}).</code> </item> + <tag><c>no_auto_import</c></tag> + <item> + <p>Do not auto import any functions from the module <c>erlang</c>.</p> + </item> + <tag><c>no_line_info</c></tag> <item> |