Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.lisp
Compile 'make-adder' error debugging help
gengyangcai
9/30/2015 8:43:00 AM
Hi,
So I hope this post doesn't get ignored or marked as spam because it is a genuine one. Going through Chapter 2.9(Compilation) of Paul Graham's onlisp (
http://ep.yimg.com/ty/cdn/paulgraham/...
) and it was all going fine until I hit the part about the compiling of inner functions and got this error message ----
CL-USER 9 : 1 > (compile 'make-adder)
Error: Undefined function MAKE-ADDER in form (SYMBOL-FUNCTION MAKE-ADDER).
1 (continue) Take the function definition of another function name.
2 Try to take the function definition of MAKE-ADDER again.
3 Return a value from the call to (SYMBOL-FUNCTION MAKE-ADDER).
4 Set the function definition of MAKE-ADDER to another function.
5 (abort) Return to level 1.
6 Return to debug level 1.
7 Return to level 0.
8 Return to top loop level 0.
How do I "Take the function definition of another function name, Try to take the function definition of MAKE-ADDER etc etc , and execute steps 1 - 8 to debug this" ?
1 Answer
Pascal J. Bourguignon
9/30/2015 9:18:00 AM
0
CAI GENGYANG <gengyangcai@gmail.com> writes:
> Error: Undefined function MAKE-ADDER in form (SYMBOL-FUNCTION MAKE-ADDER).
> 1 (continue) Take the function definition of another function name.
> 2 Try to take the function definition of MAKE-ADDER again.
> 3 Return a value from the call to (SYMBOL-FUNCTION MAKE-ADDER).
> 4 Set the function definition of MAKE-ADDER to another function.
> 5 (abort) Return to level 1.
> 6 Return to debug level 1.
> 7 Return to level 0.
> 8 Return to top loop level 0.
>
>
> How do I "Take the function definition of another function name, Try
> to take the function definition of MAKE-ADDER etc etc , and execute
> steps 1 - 8 to debug this" ?
Those are not steps, those are RESTARTS.
What you have to do to invoke a restart depends on the implementation
and on the debugger you are using.
With slime, when you are in a sldb buffer you can just type the digit of
the restart, or you can move the cursor on the line of the restart and
type RET.
With slime, when you have interactive restarts, the interaction will
occur in the slime-repl buffer.
--
__Pascal Bourguignon__
http://www.informat...
â??The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.â? -- Carl Bass CEO Autodesk
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Compile 'make-adder' error debugging help
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password