scsh-users
[Top] [All Lists]

SRFI-5 breaks original let?

To: scsh-users@scsh.net
Subject: SRFI-5 breaks original let?
From: Gary Baumgartner <gfb@cs.toronto.edu>
Date: Thu, 3 Jun 2004 22:33:22 +0200 (MST)
List-id: <scsh-users.list-id.scsh.net>
Old-x-envelope-to: scsh-users
In 0.6.6, opening srfi-5 seems to break some original uses of let:

> (let () 'hi)
'hi
> ,open srfi-5
Load structure srfi-5 (y/n)? y
[srfi-5 /usr/lib/scsh/srfi/srfi-5.scm]
> (let () 'hi)

Warning: invalid expression
         ()

Error: undefined variable
       standard-let
       (package srfi-5)


The file scheme/srfi/srfi-5.scm in the source distribution rewrites let
to standard-let, but there is no standard-let defined. A fix seems to be
to change

(define-structure srfi-5 (export (let :syntax))
  (open (modify scheme-level-2 (hide let)))

to

(define-structure srfi-5 (export (let :syntax))
  (open (modify scheme-level-2 (rename (let standard-let)) (hide let)))

in scheme/more-packages.scm.

I'm not familiar with the details of the structure system, so I may not
be opening the package correctly. Furthermore, if it is a bug I'm unclear
whether (hide let) should be left in.

Gary

<Prev in Thread] Current Thread [Next in Thread>
  • SRFI-5 breaks original let?, Gary Baumgartner <=