Mirko
5/7/2015 7:37:00 PM
This is on CCL (on Windows 7)
I have a constant that evaluates to a structure
(defstruct xyz x y z)
(defconstant +i+ (make-xyz :x 1 :y 0 :z 0))
In subsequent code I have functions that use +i+. For example:
(defun foo ()
+i+)
Evaluation works (in clime C-x C-e) by putting the cursor after the closing parenthesis
But file compile-file (or in slime compile-defun (C-c C-c)) results in following error:
No MAKE-LOAD-FORM method is defined for #S(XYZ :X 1 :Y 0 :Z 0)
[Condition of type SIMPLE-ERROR]
Restarts:
0: [RETRY-COMPILE-FILE] Retry compiling #P"C:/Users/977315/AppData/Local/Temp/cclBEB6.tmp"
1: [SKIP-COMPILE-FILE] Skip compiling and loading #P"C:/Users/977315/AppData/Local/Temp/cclBEB6.tmp"
2: [ABORT] Abort compilation.
3: [*ABORT] Return to SLIME's top level.
4: [ABORT-BREAK] Reset this thread
5: [ABORT] Kill this thread
Backtrace:
0: (CCL::NO-MAKE-LOAD-FORM-FOR #S(XYZ :X 1 :Y 0 :Z ...))
1: (CCL::FASL-SCAN-USER-FORM #S(XYZ :X 1 :Y 0 :Z ...))
How can I go around that?
Thanks (in advance),
Mirko