Subject: Re: Iterating over general sequences
From: rpw3@rpw3.org (Rob Warnock)
Date: Thu, 12 May 2005 23:52:07 -0500
Newsgroups: comp.lang.lisp
Message-ID: <fN6dnaq02M7qrxnfRVn-ow@speakeasy.net>
Alexander Schmolck  <a.schmolck@gmx.net> wrote:
+---------------
| tfb@conquest.OCF.Berkeley.EDU (Thomas F. Burdick) writes:
| >   - that's a bad place for the declarations (what if I'm declaring VAR
| >     to be special?)
...
| And out of curiosity -- have you got an example when declaring an
| iteration variable special would be handy?
+---------------

Google for "Jensen's Device"...

[Yes, I know specials aren't "call-by-name" at all,
but you can do some of the same things with them.]

Or try this one:

    (loop for *print-base* from 2 to 36 do (print 1234567))


-Rob

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