Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions apps/docs/autogen/data/dictionary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:

Expand Down