Thomas F. Burdick <tfb@conquest.OCF.Berkeley.EDU> wrote:
| Pascal Bourguignon <firstname.lastname@example.org> writes:
| > tfb@conquest.OCF.Berkeley.EDU (Thomas F. Burdick) writes:
| > > (defvar *some-var* 2)
| > > (define-symbol-macro some-var (symbol-value '*some-var*))
| > >
| > > And now you have some-var, which behaves like a global lexical.
| > If it'sa global lexical, non dynamic (special), why do you name it with stars?
| Read, Pascal! There are two things there, one global special named
| *some-var*, and one symbol macro named some-var. It's the latter that
| behaves like a global lexical.
| I could have posted a deflexical macro, but I didn't want to obscure
| the simple mechanics of how it would work with the machinery of the
| macro. When experienced lispers who ought to be able to read two
| lines of simple code come and post misleading responses, that undoes
| all the intended newbie-friendliness.
Oops. Sorry. I too posted before reading closely enough. (*blush*)
Rob Warnock <email@example.com>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607