#1343 closed defect (fixed)
Unable to create R7RS libraries which don't import quote
| Reported by: | Alex Shinn | Owned by: | evhan |
|---|---|---|---|
| Priority: | major | Milestone: | 5.1 |
| Component: | unknown | Version: | 4.11.0 |
| Keywords: | Cc: | ||
| Estimated difficulty: | hard |
Description
Trying to define an R7RS library which doesn't import quote (e.g. an aggregate library which just re-exports from other libraries), results in the following warning and fails to compile:
Warning: reference to possibly unbound identifier `quote' Warning: suggesting one of: Warning: (import r5rs-null) Warning: (import r4rs-null) Warning: (import scheme) Warning: (import r4rs)
Change History (6)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
The code in question is at: https://github.com/ashinn/chibi-scheme/blob/master/lib/chibi/iset.sld.
The same quote bug also occurs in https://github.com/ashinn/chibi-scheme/blob/master/lib/chibi/regexp.sld if the (cond-expand ((library (srfi 33)) (import (srfi 33))) (else (import (srfi 60)))) precedes (import (scheme base)).
comment:3 Changed 8 years ago by
| Estimated difficulty: | → hard |
|---|
comment:4 Changed 8 years ago by
| Owner: | set to evhan |
|---|---|
| Status: | new → accepted |
Patch posted to hackers.
comment:5 Changed 8 years ago by
| Milestone: | someday → 4.14.0 |
|---|---|
| Resolution: | → fixed |
| Status: | accepted → closed |
Fixed by 59f200db.
Note: See
TracTickets for help on using
tickets.

This may be more complicated than I thought. The example is:
(define-library (chibi iset) (import (chibi iset base) (chibi iset iterators) (chibi iset constructors)) (export %make-iset make-iset iset? iset-contains? Integer-Set iset iset-copy list->iset list->iset! iset-adjoin iset-adjoin! iset-delete iset-delete! iset-union iset-union! iset-intersection iset-intersection! iset-difference iset-difference! iset-empty? iset-fold iset-fold-node iset-for-each iset-for-each-node iset-map iset->list iset-size iset= iset<= iset>= iset-cursor iset-cursor? iset-cursor-next iset-ref end-of-iset?))with the 3 imported libraries as implemented in chibi, all of which build successfully. However, attempts to create a smaller example have failed.