From d2b412df6c8751c10de025399cb04a8194169d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 18 Oct 2013 12:05:46 +0200 Subject: 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. --- lib/compiler/doc/src/compile.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/compiler') 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 \ -compile({no_auto_import,[error/1]}). + no_auto_import + +

Do not auto import any functions from the module erlang.

+
+ no_line_info -- cgit v1.2.3