Search found 35 matches

by methusala
Sun Jan 18, 2009 12:13 pm
Forum: Common Lisp
Topic: Debugger restarts question
Replies: 1
Views: 3703

Debugger restarts question

Hello Lispers, When my SBCL program has an error and the slime debugger comes up, I would like the last successfully executed form to be in the list of restarts. How can I get that to always be listed? Would I need to add condition handler code for every form? Right now my only listed restarts are a...
by methusala
Mon Oct 06, 2008 7:39 pm
Forum: Common Lisp
Topic: How to turn function into a list?
Replies: 11
Views: 24137

Re: How to turn function into a list?

ps: I mis-pasted a couple lines of lisp above, it shuld have read: CL-USER> (list (function-lambda-expression 'h)) ((LAMBDA (X) (DECLARE (SYSTEM::IN-DEFUN H)) (BLOCK H (* 2 X)))) Not: CL-USER> (list '(function-lambda-expression 'h)) ((LAMBDA (X) (DECLARE (SYSTEM::IN-DEFUN H)) (BLOCK H (* 2 X))))
by methusala
Mon Oct 06, 2008 7:29 pm
Forum: Common Lisp
Topic: How to turn function into a list?
Replies: 11
Views: 24137

Re: How to turn function into a list?

Thanks everyone, This definetly helped clear up an area I was puzzling over. I can see that knowing the slime and sbcl documentation is important to getting the fast lisp development speed talked about in the books. I was surprised to see over 3000 functions loaded by default in a lispbox image. CLO...
by methusala
Sat Oct 04, 2008 2:21 pm
Forum: Common Lisp
Topic: How to turn function into a list?
Replies: 11
Views: 24137

Re: How to turn function into a list?

Thanks Dan, That helps alot. I started studying lisp on and off after working on a Java project that I realized would have been easier and better if the program could have changed some of it's code while running. I wanted to do that to reuse and dynamicaly modify web framework code based on user per...
by methusala
Fri Oct 03, 2008 6:51 pm
Forum: Common Lisp
Topic: How to turn function into a list?
Replies: 11
Views: 24137

How to turn function into a list?

Hello, My nick is Methusala and I am a recovering Javaholic. I would like to be able to turn a function into a list at the repl, so I can experiment with meta programming in the REPL. I know how to use a list like a function: CL-USER> (setf g '(+ 2 2)) (+ 2 2) CL-USER> g (+ 2 2) CL-USER> (eval g) 4 ...