[mcclim-devel] small clim-lisp:defconstant improvement
29 Jun
2009
29 Jun
'09
12:08 a.m.
I was recently somewhat burned (performance-wise) by clim-lisp:defconstant being really a defvar. Would something like the following be an acceptable substitute? It remains portable, but allows implementations to do a much better job for important cases like numeric constants: (defmacro clim-lisp-patch:defconstant (symbol value &optional docu) (if (typep value '(or number character)) `(cl:defconstant ,symbol ,value ,@(and docu (list docu))) `(defvar ,symbol ,value ,@(and docu (list docu))))) Cheers, -- Nikodemus
5700
Age (days ago)
5700
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikodemus Siivola