Hi,
For some reason, whenever I use the function PARSE-BODY, the argument BODY that is passed to it is printed (tested in SBCL and Clisp).
Clisp:
[4]> (alexandria.0.dev:parse-body '((declare (optimize speed)) (+ x y)))
(DECLARE (OPTIMIZE SPEED)) (+ X Y) ((+ X Y)) ; ((DECLARE (OPTIMIZE SPEED))) ; NIL
SBCL:
* (parse-body '((declare (optimize speed)) (+ x y)))
(DECLARE (OPTIMIZE SPEED)) (+ X Y) ((+ X Y)) ((DECLARE (OPTIMIZE SPEED))) NIL
I'm using Alexandria of Quicklisp.
SBCL:
- (parse-body '((declare (optimize speed)) (+ x y)))
(DECLARE (OPTIMIZE SPEED)) (+ X Y) ((+ X Y)) ((DECLARE (OPTIMIZE SPEED))) NIL
FYI, can't reproduce on alexandria head:
CL-USER> (alexandria:parse-body '((declare (optimize speed)) (+ x y))) ((+ X Y)) ((DECLARE (OPTIMIZE SPEED))) NIL CL-USER>
alexandria-devel@common-lisp.net