Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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 useing 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 14 years ago by felix winkelmann

Another possibly much simpler fix may be processing reexport not in "meta" mode.

comment:2 Changed 14 years ago by felix winkelmann

Summary: rexporting syntax fails with compiled import librariesreexporting syntax fails with compiled import libraries

comment:3 Changed 14 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

Making reexport use the syntax env (not the meta syntax-env) appears to fix the problem. Fixed somewhere in experimental.

comment:4 Changed 14 years ago by (none)

Milestone 4.4.0 deleted

Note: See TracTickets for help on using tickets.