unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
To: guile-user@gnu.org
Subject: Re: Eval with local environment?
Date: Sat, 19 Aug 2017 23:36:17 +0200	[thread overview]
Message-ID: <87fucncka6.fsf@fencepost.gnu.org> (raw)
In-Reply-To: 1503177265.2309.17.camel@qlfiles.net

Christopher Howard <christopher.howard@qlfiles.net> writes:

> I was just curious: Is there something you can pass to eval procedure
> that using the local environment? e.g.,
>
> (let ((foo 12)) (eval 'foo (this-environment)))
>
> to get it to return 12.

No.  But there is

(use-modules (ice-9 local-eval))

(let ((foo 12)) (local-eval 'foo (the-environment)))

-- 
David Kastrup




      reply	other threads:[~2017-08-19 21:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-19 21:14 Eval with local environment? Christopher Howard
2017-08-19 21:36 ` David Kastrup [this message]

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=87fucncka6.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=guile-user@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).