[lift-devel] Dynamic Variables?

Vyacheslav Akhmechet coffeemug at gmail.com
Sun Aug 17 00:23:23 UTC 2008


On Sat, Aug 16, 2008 at 6:33 PM, Gary King <gwking at metabang.com> wrote:
> LIFT assumes that all the variables listed in the :dynamic-variables clause
> will have been previously defined via defvar or defparameter.
Ah, of course. Somehow when I saw :dynamic-variables feature I assumed
it's implemented with progv and the association was too strong in my
mind.

> I'm not sure whether to think of this as a bug or a feature. What do you think?
One way to think of it is that this behavior exposes potential bugs
and issues in the code. I don't agree with this personally because CL
specifically allows to declare variables as special using (declare
(special ...)) form, so not all special variables have to be declared
globally. I guess I use this feature of CL more often than you do :)

It would probably more in the spirit of CL to automatically declare
:dynamic-variables as special, and it wouldn't 'cause UI surprises.
However, now that I know what the workaround is, the issue doesn't
bother me much and I suppose other people would feel the same way.

Thanks,
- Slava



More information about the lift-devel mailing list