Subject: Re: De-facto standard CL implementation of continuations?
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 02 Sep 2005 03:50:40 -0500
Newsgroups: comp.lang.lisp
Message-ID: <0cudnZ2dnZ0_d1bHnZ2dnf2Phd6dnZ2dRVn-052dnZ0@speakeasy.net>
Thomas F. Burdick <tfb@conquest.OCF.Berkeley.EDU> wrote:
+---------------
| Pascal Bourguignon <spam@mouse-potato.com> 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

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607