unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
Cc: 10991@debbugs.gnu.org
Subject: bug#10991: syntax-local-binding does not play well with fluid-let-syntax
Date: Fri, 06 Jul 2012 11:25:36 +0200	[thread overview]
Message-ID: <87r4sp1bsf.fsf@pobox.com> (raw)
In-Reply-To: <CAGua6m3rZ8Gk44nd1iTwKM3BcQeO4YtTBQOVSpexkXOzyM_RHQ@mail.gmail.com> (Stefan Israelsson Tampe's message of "Sun, 11 Mar 2012 12:47:22 +0100")

Hi Stefan,

Sorry for the late reply.

On Sun 11 Mar 2012 12:47, Stefan Israelsson Tampe <stefan.itampe@gmail.com> writes:

> ;;This shows that f rebounds to yield #t but the info returns %f
> (eq?
>  (fluid-let-syntax ((f (lambda x #'#t)))
>    (pk (f 1))
>    (info f))
>  %f)

This is by design.  This is as in Racket, where there is a difference
between syntax-local-value and syntax-parameter-value.  In master, there
is an additional parameter to resolve-identifier,
`resolve-syntax-parameters?'.

Suggestion: if you want this, add a similar parameter to psyntax.scm in
stable-2.0, and in both branches plumb it through to a keyword argument
on syntax-local-binding.  Update the docs, too :)  You had the
beginnings of a patch on bug 10992.

Thanks!

Andy
-- 
http://wingolog.org/





  reply	other threads:[~2012-07-06  9:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11 11:47 bug#10991: syntax-local-binding does not play well with fluid-let-syntax Stefan Israelsson Tampe
2012-07-06  9:25 ` Andy Wingo [this message]
2012-07-06 19:03   ` Stefan Israelsson Tampe
2012-07-06 19:37     ` Andy Wingo
2012-07-06 19:46       ` Stefan Israelsson Tampe
2012-09-23 10:22         ` Stefan Israelsson Tampe
2013-03-13 10:44           ` Andy Wingo

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=87r4sp1bsf.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=10991@debbugs.gnu.org \
    --cc=stefan.itampe@gmail.com \
    /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).