chickadee » dynamic-import » dynamic-import

(dynamic-import MDs IDs (default DEF))syntax
(dynamic-import MDs IDs [DEF])syntax

Attempts to import the identifiers IDs from a module, in the listed MDs order. Should no module succeed, the default specification DEF is used to bind the IDs.

The extend module identifier syntax, ex: (srfi 1) & (main sub1 sub1-1), is supported. However, use does need to be as ((srfi 1) (main sub1 sub1-1)), to prevent misunderstanding.

MD ; (or symbol (list symbol fixnum) (list-of (or symbol number)))
ID ; (symbol)
MDs ; (or MD (list-of MD)) ; one or many module specifications
IDs ; (or ID (list-of ID)) ; one or many identifiers
DEF
(default * ...) ; default is (* ...)
DEF
procedure ; default is the result of (DEF IDs)

The IDs are assigned from the default list, w/ an element for each ID.