Subject: Re: Accessing enclosed symbol.
From: Erik Naggum <erik@naggum.no>
Date: 17 Oct 2002 13:53:19 +0000
Newsgroups: comp.lang.lisp
Message-ID: <3243851599697469@naggum.no>

* Jacek Generowicz
| Is there a pithy term to describe "what-is-this-called?"? ... in other
| words, to describe variables captured(?)/enclosed(?) by a closure.

  Binding.  A closure is closed over bindings, hence the name.

| Is there a way of getting at the values of the enclosed variables?

  Just reference them.  If you want to have a mapping from symbol to value,
  you have to the exact same thing you would have to do with any other
  lexical binding: Do it yourself.

(let ((a 2) (b 3) (c 5) (d 7))
  (case <symbol> (a a) (b b) (c c) (d d)))

-- 
Erik Naggum, Oslo, Norway

Act from reason, and failure makes you rethink and study harder.
Act from faith, and failure makes you blame someone and push harder.