unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: bug-guile@gnu.org
Subject: Re: Quite sneaky bug in SRFI-9
Date: Fri, 11 Mar 2011 20:30:42 +0100	[thread overview]
Message-ID: <m34o795ual.fsf@unquote.localdomain> (raw)
In-Reply-To: <87aah1n4mp.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 11 Mar 2011 14:55:26 +0100")

Hi,

On Fri 11 Mar 2011 14:55, ludo@gnu.org (Ludovic Courtès) writes:

>               (define-syntax name
>                 (lambda (x)
>                   (syntax-case x ()
> -                   ((_ formals ...)
> -                    #'(begin body ...))
> +                   ((_ args ...)
> +                    #'(letify (formals ...) (args ...)
> +                              (begin body ...)))

Alternately:

  ((_ args ...)
   #'((lambda (formals ...)
        body ...)
      args ...))

Guile will turn that into a let.

Andy
-- 
http://wingolog.org/



  parent reply	other threads:[~2011-03-11 19:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10  0:23 Quite sneaky bug in SRFI-9 Andreas Rottmann
2011-03-11 13:55 ` Ludovic Courtès
2011-03-11 19:28   ` Andy Wingo
2011-03-11 19:30   ` Andy Wingo [this message]
2011-03-11 20:03     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m34o795ual.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=bug-guile@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).