Thien-Thi Nguyen <t...@gnuvola.org> writes: > () David Kastrup <d...@gnu.org> > () Sat, 03 Dec 2011 16:45:06 +0100 > > 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? > > Does ‘delay’ (and later ‘force’) work?
No. (set! (force (delay (some-procedure-with-setter and its args)))) does not work. In addition, each expression will be run once or not at all (and its side effects on the containing environment are desired), so the memoizing nature of promises does not help. -- David Kastrup