#154 closed defect (fixed)
reexporting syntax fails with compiled import libraries
Reported by: | felix winkelmann | Owned by: | felix winkelmann |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | expander | Version: | 4.3.x |
Keywords: | reexport | Cc: | |
Estimated difficulty: |
Description
The following fails, when m1.import.scm is compiled:
(module x () (import scheme chicken) (reexport srfi-13) (require-library srfi-13))
When use
ing x
, the rexported syntax (let-string-start+end
) will not be found, because the import is done during execution of x.import.so
, and is not retained in the macro environment (that's the reason eval
is used in import libs for the normal imports).
A possible fix may be adding the reexported modules to the normal imports, not the meta-imports.
Change History (4)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Summary: | rexporting syntax fails with compiled import libraries → reexporting syntax fails with compiled import libraries |
---|
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Making reexport
use the syntax env (not the meta syntax-env) appears to fix the problem. Fixed somewhere in experimental
.
Note: See
TracTickets for help on using
tickets.
Another possibly much simpler fix may be processing
reexport
not in "meta" mode.