Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#320 closed enhancement (fixed)

The require-library ID & import IMPORT module name forms are disjoint

Reported by: Kon Lovett Owned by:
Priority: not urgent at all Milestone: 4.9.0
Component: unknown Version: 4.5.x
Keywords: syntax module library Cc:
Estimated difficulty:

Description

The require-library ID allows (srfi #) but the import IMPORT module name does not due to the interpretation of a structured IMPORT as an import specifier only.

Perhaps the module name concept in the context of an 'import' could be extended to allow structured module names where the base name does not clash with the set of import specifier tags. Specifically '(srfi #)'.

So

(import

...
(prefix (only (srfi 1) map for-each member assoc) srfi-1:)
...)

(require-library ... (srfi 1) ...)

would be legal.

(The require-library (srfi # ...) & (version ...) forms are not relevant here.)

(The more general case of structured module/library names is not discussed here.)

Change History (3)

comment:1 Changed 14 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

See "experimental", commit 7f9f454. require-extension now also tries to handle this syntax. Note that only a single SRFI-number is currently allowed in the import form.

comment:2 Changed 14 years ago by felix winkelmann

Milestone: 4.7.04.8.0

Milestone 4.7.0 deleted

comment:3 Changed 12 years ago by felix winkelmann

Milestone: 4.8.04.9.0

Milestone 4.8.0 deleted

Note: See TracTickets for help on using tickets.