|
From: <2Qd...@po...> - 2026-05-20 23:36:33
|
On 2026-05-20 at 18:58:43 -0400,
Greg Bennett <gwb...@gm...> wrote:
[...]
> The constant +ZOT+ is being redefined (from ("a" "b") to ("a" "b"))
> See also:
> The ANSI Standard, Macro DEFCONSTANT
> The SBCL Manual, Node "Idiosyncrasies"
[...]
> Is there a way to avoid this situation ?
Don't redefine your constants? ;-)
Or use Alexandria's define-constant[0].
Or use defparameter instead of defconstant.
IMO, the two references in the error message describe the error fairly
well, at least well enough to made sense to me the first time I ran into
this.
HTH,
Dan
[0] <https://alexandria.common-lisp.dev/draft/alexandria.html#index-define_002dconstant>
|