Comment 3 for bug 1753341

Revision history for this message
Christophe Rhodes (csr21-cantab) wrote : Re: [Bug 1753341] Re: (setf lparen '#\( ) fails

murray wolinsky <email address hidden> writes:

> I don't understand. This is what I get:

In SBCL, you get some warnings, because what you're doing is assigning
to a variable with no binding. This is (strictly speaking) undefined
behaviour; SBCL does in fact set the SYMBOL-VALUE of LPAREN to what you
ask it to (so it doesn't "fail") but it also tells you that you
shouldn't do that.

To define a global variable, use DEFPARAMETER (and conventionally,
*earmuff* your variable).

Christophe