[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anything better for delayed lexical evaluation than (lambda () ...)?
From: |
Andy Wingo |
Subject: |
Re: Anything better for delayed lexical evaluation than (lambda () ...)? |
Date: |
Sat, 03 Dec 2011 17:44:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Sat 03 Dec 2011 16:45, David Kastrup <address@hidden> writes:
> Hi, if I have something read that is evaluated later, the lack of
> procedure-environment in Guilev2 implies that I have to wrap the stuff
> in (lambda () ...) in order to capture the lexical environment for
> evaluation.
>
> Is it possible to have a shortcut (make-closure ...) or so for that
> purpose? The reason is that if ... is a call to a
> procedure-with-setter, (lambda () ...) actually does not cut it for
> capturing the semantics of ..., and I need
> (make-procedure-with-setter (lambda () ...)
> (lambda (x) (set! ... x)))
>
> But x is not hygienic, so this is again too simplistic. And a separate
> macro make-closure also could decide that the expression is pure anyway
> and not go to the pain of creating an actual closure.
I'm having a hard time parsing this, as it is very high level. Could
you give an example of what you are trying to do?
Thanks,
Andy
--
http://wingolog.org/
- Anything better for delayed lexical evaluation than (lambda () ...)?, David Kastrup, 2011/12/03
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?,
Andy Wingo <=
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, Thien-Thi Nguyen, 2011/12/06
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, Marco Maggi, 2011/12/06
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, David Kastrup, 2011/12/11
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, David Kastrup, 2011/12/11
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, Mark H Weaver, 2011/12/12
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, David Kastrup, 2011/12/12
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, Mark H Weaver, 2011/12/12
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, David Kastrup, 2011/12/12
- Re: Anything better for delayed lexical evaluation than (lambda () ...)?, rixed, 2011/12/12