Re: SRFI-5 breaks original let?
Andreas Bernauer <[email protected]>
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <[email protected]> |
Gary Baumgartner wrote in June: > 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. Has this been adressed by anybody in the meanwhile? As far as I can see, this is a bug (either in scsh or in srfi-5's example implementation, depending on how you look at it) and Gary's proposal seems to correct it. -- Andreas.
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBYlbiUZNNpiz9r/gRAtLRAKCDbtQ6uE9ci7A8sA60wSZGE9+EagCfQg4Q 5TXWFSS0eHrVk+Aedqv7Oeg= =wR89 -----END PGP SIGNATURE-----