scsh-users
[Top] [All Lists]

Re: SRFI-5 breaks original let?

To: scsh-users@scsh.net
Subject: Re: SRFI-5 breaks original let?
From: Andreas Bernauer <andreas.bernauer@gmx.de>
Date: Tue, 5 Oct 2004 09:55:22 +0200 (MST)
List-id: <scsh-users.list-id.scsh.net>
Mail-followup-to: scsh-users@scsh.net
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.

Attachment: pgpaoFktlPwGl.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>