mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
docs: Mention import foo {.all.} syntax (#19377)
Mention the `import foo {.all.}` syntax in the manual,
with a caveat about private imports.
Also link to the experimental importutils module.
Co-authored-by: adigitoleo <adigitoleo@dissimulo.com>
This commit is contained in:
@@ -168,6 +168,17 @@ This feature will likely be superseded in the future by support for
|
||||
recursive module dependencies.
|
||||
|
||||
|
||||
Importing private symbols
|
||||
=========================
|
||||
|
||||
In some situations, it may be useful to import all symbols (public or private)
|
||||
from a module. The syntax `import foo {.all.}` can be used to import all
|
||||
symbols from the module `foo`. Note that importing private symbols is
|
||||
generally not recommended.
|
||||
|
||||
See also the experimental `importutils <importutils.html>`_ module.
|
||||
|
||||
|
||||
Code reordering
|
||||
===============
|
||||
|
||||
|
||||
Reference in New Issue
Block a user