GNU bug report logs - #10991
syntax-local-binding does not play well with fluid-let-syntax

Previous Next

Package: guile;

Reported by: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>

Date: Sun, 11 Mar 2012 12:18:01 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
Subject: bug#10991: closed (Re: bug#10991: syntax-local-binding does not
 play well with fluid-let-syntax)
Date: Wed, 13 Mar 2013 10:46:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#10991: syntax-local-binding does not play well with fluid-let-syntax

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 10991 <at> debbugs.gnu.org.

-- 
10991: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10991
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
Cc: 10991-done <at> debbugs.gnu.org
Subject: Re: bug#10991: syntax-local-binding does not play well with
	fluid-let-syntax
Date: Wed, 13 Mar 2013 11:44:36 +0100
On Sun 23 Sep 2012 12:22, Stefan Israelsson Tampe <stefan.itampe <at> gmail.com> writes:

> What's perhaps is missing is a simple change to local-syntax-value to
> add a keyword so that one can decide if one wants the definition value
> of the syntax parameter.

I have added this in master (to syntax-local-binding) and documented
it.  Closing this bug.

Andy
-- 
http://wingolog.org/

[Message part 3 (message/rfc822, inline)]
From: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: syntax-local-binding does not play well with fluid-let-syntax
Date: Sun, 11 Mar 2012 12:47:22 +0100
[Message part 4 (text/plain, inline)]
loading local-stx shows that setting a macro via fluid-let-syntax does not
play well with syntax-local-binding who just sees the outside main
definition and not the newly introduced binding!
 -------------------

(use-modules (system syntax))
(use-modules (srfi srfi-11))

(eval-when (compile load eval)
  (define (%f x) (error "this macro should never be called")))

(define-syntax f %f)

(define-syntax info
  (lambda (x)
    (syntax-case x ()
      ((_ f)
       (let-values (((key ret) (syntax-local-binding #'f)))
         (pk key)
         ret)))))

;;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)
[Message part 5 (text/html, inline)]
[local-stx.scm (text/x-scheme, attachment)]

This bug report was last modified 12 years and 128 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.