From: Mark H Weaver <mhw@netris.org>
To: David Kastrup <dak@gnu.org>
Cc: guile-devel@gnu.org
Subject: Re: [PATCH] Implement local-eval, local-compile, and the-environment
Date: Thu, 05 Jan 2012 14:14:28 -0500 [thread overview]
Message-ID: <87obuic67f.fsf@netris.org> (raw)
In-Reply-To: <87r4zeyulr.fsf@fencepost.gnu.org> (David Kastrup's message of "Thu, 05 Jan 2012 17:36:32 +0100")
David Kastrup <dak@gnu.org> writes:
> Ah, I see that set! has made it explicitly into the patterns. What
> about
>
> (define foo (make-procedure-with-setter vector-ref vector-set!))
>
> (let ((env
> (let ((x (make-vector 2 #f)))
> (the-environment))))
> (local-eval '(set! (foo x 1) 3) env))
Both patches handle this correctly.
Mark
next prev parent reply other threads:[~2012-01-05 19:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 10:52 [PATCH] Implement local-eval, local-compile, and the-environment Mark H Weaver
2012-01-03 11:55 ` David Kastrup
2012-01-03 18:45 ` Mark H Weaver
2012-01-05 16:36 ` David Kastrup
2012-01-05 19:14 ` Mark H Weaver [this message]
2012-01-05 19:34 ` Mark H Weaver
2012-01-04 0:06 ` Mark H Weaver
2012-01-07 17:57 ` Andy Wingo
2012-01-07 17:55 ` Andy Wingo
2012-01-07 20:20 ` Mark H Weaver
2012-01-07 21:23 ` Andy Wingo
2012-01-08 20:39 ` Mark H Weaver
2012-01-14 15:28 ` Variables and the evaluator (Was: [PATCH] Implement local-eval, local-compile, and the-environment) Andy Wingo
2012-01-14 15:37 ` Variables and the evaluator Andy Wingo
2012-01-14 15:58 ` [PATCH] Implement local-eval, local-compile, and the-environment Andy Wingo
2012-01-14 16:34 ` 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=87obuic67f.fsf@netris.org \
--to=mhw@netris.org \
--cc=dak@gnu.org \
--cc=guile-devel@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).