[cl-typesetting-devel] Fwd: top-level misuses defconstant

Dmitriy Ivanov divanov at aha.ru
Tue Jun 14 09:41:54 UTC 2005


Hello Faré,

| In cl-typesetting-current, top-level.lisp uses defconstant to define a
| list, which is non-conformant to ANSI CL, and which SBCL refuses to
| compile unless you force non-conformant behaviour. The defconstant
| +paper-sizes+ should be a defvar, or a defconstant*, where
| defconstant* is defined to be defconstant on those implementations
| that support it, or defvar on others, or defconstant wrapped in
| something proper in SBCL.
|
| http://www.sbcl.org/manual/Defining-Constants.html

AFAIK, defining a list with defconstant is not prohibited by ANSI CL
explicitly.

IMHO, dealing with constants in SBCL is a SBCL convenience issue,
not a general ANSI CL non-conformance issue.
--
Sincerely,
Dmitriy Ivanov
lisp.ystok.ru




More information about the cl-typesetting-devel mailing list