From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: bound identifiers
Date: Tue, 17 Jan 2012 16:33:57 +0100 [thread overview]
Message-ID: <CAGua6m2jeVCdXQe2xieMOA0uNsnuLu6XhLeKwNrTX08pC+HYzA@mail.gmail.com> (raw)
In-Reply-To: <87y5t7gr9f.fsf@pobox.com>
[-- Attachment #1.1: Type: text/plain, Size: 442 bytes --]
Yes!
see attachement!
/Stefan
On Tue, Jan 17, 2012 at 12:30 AM, Andy Wingo <wingo@pobox.com> wrote:
> On Mon 16 Jan 2012 22:56, Stefan Israelsson Tampe <stefan.itampe@gmail.com>
> writes:
>
> > As you see, it's just wild west to get the racket code working.
>
> :)
>
> Can you give a stripped-down test case for this particular behavior?
>
> That code is paged into my and Mark's minds right now :)
>
> Andy
> --
> http://wingolog.org/
>
[-- Attachment #1.2: Type: text/html, Size: 914 bytes --]
[-- Attachment #2: bound-id.scm --]
[-- Type: text/x-scheme, Size: 413 bytes --]
(use-modules (srfi srfi-9))
(define-record-type data
(make-data stx)
data?
(stx data-stx))
(define-syntax b
(lambda (x)
(syntax-case x ()
((_ s)
(with-syntax ((d (datum->syntax #'#f (make-data #'s))))
#'(c #'s #'d))))))
(define (c s d)
(let ((d (data-stx (syntax->datum d))))
(pk s)
(pk d)
(bound-identifier=? s d)))
(eval '(let ((t 1)) (b t)) (current-module))
next prev parent reply other threads:[~2012-01-17 15:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-16 19:46 bound identifiers Stefan Israelsson Tampe
2012-01-16 21:28 ` Andy Wingo
2012-01-16 21:56 ` Stefan Israelsson Tampe
2012-01-16 23:30 ` Andy Wingo
2012-01-17 15:33 ` Stefan Israelsson Tampe [this message]
2012-01-16 22:01 ` 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=CAGua6m2jeVCdXQe2xieMOA0uNsnuLu6XhLeKwNrTX08pC+HYzA@mail.gmail.com \
--to=stefan.itampe@gmail.com \
--cc=guile-devel@gnu.org \
--cc=wingo@pobox.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).