Closed charJe closed 1 year ago
You must wrap defclass in eval-when
That seems like more of a work around. Is there a better solution?
In order for the matcher to recognize the class and expand the form into a correct code, the class must be defined at the time of the expansion. This fact itself has no workaround.
Another way to fix this is to move the class definition into a separate file and make sure ASDF loads it before compiling this file.
I see. That is unfortunate.
I was just looking at find-class
and saw that it has an environment parameter. I didn't see a way to use it for sensing compiled defclass
forms though. 😿
This error seems to only happen when the file is compiled with asdf. It does not happen if the file is loaded with
load
. Ifget-bar
is moved to another file that is compiled after, there is no error.