Summary
avoid indirect syntax export warning with define-library
Metadata
- Id: 3c811297917717cadf7b7b8bc3fa7f063f832fc9
- Trac id:
- Type: defect
- Reporter: felix
- Owner:
- Cc:
- Status: closed
- Component: expander
- Estimated difficulty: easy
- Resolution: fixed
- Priority: major
- Milestone:
- Version: 6.0.1pre1
- Changetime: 2026-09-09 13:13:48 UTC
- Created: 2026-09-08 11:20:17 UTC
- Keywords:
Description
reported by HernĂ¡n Ibarra Mejia:
Indirect syntax exports (other's too?) produce a warning since define-library has no way to declare indirect exports. When expanding a define-library-produced module, these warnings should be suppressed.
Changes and comments
[2026-09-08 20:33:23 UTC] felix wrote:
Example code:
(define-library *whatever*
(import (scheme base))
(export my-macro)
(begin
(define-syntax my-macro
(syntax-rules ()
((_) (my-auxiliary))))
(define-syntax my-auxiliary
(syntax-rules ()
((_) 42)))))
[2026-09-09 13:13:47 UTC] felix wrote:
fixed in d6442142