Opened 8 years ago

Closed 7 years ago

Last modified 6 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

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 8 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))
  (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.

comment:2 Changed 8 years ago by Alex Shinn

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 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 7 years ago by evhan

Milestone: someday4.14.0
Resolution: fixed
Status: acceptedclosed

Fixed by 59f200db.

comment:6 Changed 6 years ago by sjamaan

Milestone: 4.14.05.1

Ticket retargeted after milestone deleted

Note: See TracTickets for help on using tickets.