SRFI 133 sample implementation R7RS library Sudarshan S Chawathe 20 Oct 2017 15:24 UTC
Re: SRFI 133 sample implementation R7RS library John Cowan 27 Aug 2018 18:45 UTC

SRFI 133 sample implementation R7RS library Sudarshan S Chawathe 20 Oct 2017 15:24 UTC

In working with vectors.sld from the SRFI 133 sample implementation, I
found that a few procedures needed to be excluded from the import of
(scheme base) in order to avoid redefinition errors.

In particular, I believe

  (import (scheme base))

should be changed to something like

  (import (except (scheme base)
                  vector-copy vector-copy! vector-append
                  vector-map vector-for-each
                  vector-fill!
                  vector->list list->vector
                  vector->string string->vector))

With this change, there will likely result some "no use of..." kind of
warnings (e.g., I get them with Kawa in my tests), and someone may
prefer to remove the unused procedures instead.  But I found the above
fix a quick way to get things going with minimal changes to the code.

Regards,

-chaw