How would you do that the processing occured after foo has returned it's value ? If the print statement were in the function, then that would run before foo ended.
(defun foo (x y)
(prog1 (+ x y)
(do more processing after (+ x y) has been returned...))
Search found 3 matches
- Tue Apr 27, 2010 2:14 pm
- Forum: Common Lisp
- Topic: Processing after a function returns
- Replies: 6
- Views: 5724
- Tue Apr 27, 2010 12:11 pm
- Forum: Common Lisp
- Topic: Processing after a function returns
- Replies: 6
- Views: 5724
Re: Processing after a function returns
That might work. May I ask how you would "print a value to the REPL" ?
- Mon Apr 26, 2010 3:46 pm
- Forum: Common Lisp
- Topic: Processing after a function returns
- Replies: 6
- Views: 5724
Processing after a function returns
Hello,
Is there a way in Common Lisp to continue processing data, after the REPL has returned a value - without starting a subprocess.
(defun foo (x y)
(prog1 (+ x y)
(do more processing after (+ x y) has been returned...))
Thank you.
Is there a way in Common Lisp to continue processing data, after the REPL has returned a value - without starting a subprocess.
(defun foo (x y)
(prog1 (+ x y)
(do more processing after (+ x y) has been returned...))
Thank you.