Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#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


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 7 years ago by Alex Shinn

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))
   %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.

comment:2 Changed 7 years ago by Alex Shinn

The code in question is at:

The same quote bug also occurs in if the (cond-expand ((library (srfi 33)) (import (srfi 33))) (else (import (srfi 60)))) precedes (import (scheme base)).

comment:3 Changed 7 years ago by sjamaan

Estimated difficulty: hard

comment:4 Changed 7 years ago by evhan

Owner: set to evhan
Status: newaccepted

Patch posted to hackers.

comment:5 Changed 6 years ago by evhan

Milestone: someday4.14.0
Resolution: fixed
Status: acceptedclosed

Fixed by 59f200db.

comment:6 Changed 5 years ago by sjamaan


Ticket retargeted after milestone deleted

Note: See TracTickets for help on using tickets.