[cl-typesetting-devel] Re: cl-pdf vs the fasl cache
Marc Battyani
marc.battyani at fractalconcept.com
Mon Aug 29 10:17:30 UTC 2005
Alexey Dejneka wrote:
"Marc Battyani" <marc.battyani at fractalconcept.com> writes:
>> Faré wrote:
>[...]
>>>(defmacro defconstant* (name value &optional doc)
>>> `(eval-when (:compile-toplevel :load-toplevel :execute)
>>> (unless (boundp ',name)
>>> (defconstant ,name ,value ,@(when doc (list doc))))))
>
>This version preserves top-levelness of DEFCONSTANT:
>
>(defmacro defconstant* (name value &optional doc)
> `(defconstant ,name
> (if (boundp ',name) (symbol-value ',name) ,value)
> ,@(when doc (list doc))))
OK I will use this version.
Thanks,
Marc
More information about the cl-typesetting-devel
mailing list