diff --git a/apps/docs/autogen/data/dictionary.yaml b/apps/docs/autogen/data/dictionary.yaml index 030c7f8c..7e4e7cd9 100644 --- a/apps/docs/autogen/data/dictionary.yaml +++ b/apps/docs/autogen/data/dictionary.yaml @@ -1907,8 +1907,20 @@ entries: - name: export since: "7.1" description: |+ - Make the given names available for importing. This command is only - valid in an NLM file. See [[import|import]] for more information. + Make the given names available for importing. For example, suppose we + have an NLM file that defines three reporters: `add`, `subtract`, and + `multiply`. + + ``` + export [add subtract] + ``` + + This will make `add` and `subtract` available for importing. Because + `multiply` is not in the list, it will not be available for importing. + It can still be used within the module itself. + + This command can only be used in an NLM file. It is an error to use it + elsewhere. For more information about importing, see [[import|import]]. examples: - code: export [ *names* ] - id: export-cmds @@ -3540,10 +3552,13 @@ entries: import utils ``` - This will import procedures in "utils.nls" in the same directory as the - current file and make them available with a "utils:" prefix. As an example, - if there is a reporter called `add` in "utils.nls", then it will be made - available for use under the name `utils:add`. + This will import procedures from "utils.nlm" in the same directory as + the current file and make them available with a "utils:" prefix. As an + example, if a reporter called `add` is exported by "utils.nlm", then it + will be made available for use under the name `utils:add`. Procedures + inside a module must be exported before it can be imported and used + elsewhere. The [[export|export]] command can be used to export + procedures inside a module. The prefix can be changed as follows: