Sachin Kamboj <[EMAIL PROTECTED]> writes:

> However, if *_before_* defining the function foo, I define a special variable 
> x,
> like:
>
> (setf x '(1 2))

When you do this, you usually get the following warning:

  Warning:  Declaring X special.

So, CMUCL interprets (setf x ...) as (defparameter x ...) and declares
x as a special variable.  This is not a bug, because ANSI CL doesn't
specify what should happen if you assign to a undeclared variable.
You can also customize what should happen by setting
ext:*top-level-auto-declare* in your .cmucl-init file.  Look at the
docstring for details.

If x is a special variable, the the error looks correct to me.

Helmut.

Reply via email to