Changeset 36222 in project


Ignore:
Timestamp:
08/12/18 16:59:04 (2 months ago)
Author:
kooda
Message:

man/5/Modules: fix import definition and add import-syntax and import-syntax-for-syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/man/5/Modules

    r35531 r36222  
    131131compilation unit, if compiled and used outside of a module.
    132132
    133 Importing a module does not load or link it - this is a separate
    134 operation from importing its bindings.
     133Importing a module will also load or link its associated library when
     134needed.
    135135
    136136{{IMPORT}} may be a module name or an ''import specifier'', where a
     
    164164Prefixes all imported identifiers with {{SYMBOL}}.
    165165
     166==== import-syntax
     167
     168<macro>(import-syntax IMPORT ...)</macro>
     169
     170Similar to {{import}} but only import syntactic definitions such as
     171macros, as well as identifiers, but does not load or link the library
     172containing the module.
    166173
    167174==== import-for-syntax
     
    177184are kept separate correctly).
    178185
     186==== import-syntax-for-syntax
     187
     188<macro>(import-syntax-for-syntax IMPORT ...)</macro>
     189
     190Combination of {{import-syntax}} and {{import-for-syntax}}. Loads
     191syntactic definitions and valinside the environment in which macro
     192transformers are evaluated but do not load the associated library.
    179193
    180194==== reexport
Note: See TracChangeset for help on using the changeset viewer.