On Sat 03 Dec 2011 16:45, David Kastrup <d...@gnu.org> 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/