[Openmcl-devel] #. expansion

Ron Garret ron at flownet.com
Tue Jun 1 23:15:39 PDT 2021


On Jun 1, 2021, at 11:02 PM, Tomas Hlavaty <tom at logand.com> wrote:

> On Tue 01 Jun 2021 at 18:20, Ron Garret <ron at flownet.com> wrote:
>> You need to wrap the defconstant in en EVAL-WHEN so that it will take
>> effect while the file is being compiled, like so:
>> 
>> (eval-when (:compile-toplevel) (defconstant x 1))
> 
> or put such things in a different file to avoid these eval-when

That will only work if you load the file after compiling it.

BTW, the CCL compiler is really fast.  I never compile any of my files, I just load them and let them be recompiled every time on the fly.  That avoids this sort of issue.

rg




More information about the Openmcl-devel mailing list