(sb-cltl2:macroexpand-all '(defun foo () (+ 1 2))) returns the DEFUN form

Bug #1995445 reported by Michał "phoe" Herda
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
New
Undecided
Unassigned

Bug Description

CL-USER> (lisp-implementation-version)
"2.2.10"
CL-USER> (lisp-implementation-type)
"SBCL"
CL-USER> (sb-cltl2:macroexpand-all '(defun foo () (+ 1 2)))
(DEFUN FOO () (+ 1 2))
CL-USER> (macroexpand '(defun foo () (+ 1 2)))
(PROGN
 (EVAL-WHEN (:COMPILE-TOPLEVEL) (SB-C:%COMPILER-DEFUN 'FOO T NIL NIL))
 (SB-IMPL::%DEFUN 'FOO
                  (SB-INT:NAMED-LAMBDA FOO
                      NIL
                    (BLOCK FOO (+ 1 2)))))
T

Revision history for this message
Douglas Katzman (dougk) wrote :

An unintended consequence of https://sourceforge.net/p/sbcl/sbcl/ci/edc8dd8c apparently

Revision history for this message
Fedorov Alexander (gleefre) wrote :

Same problem with LAMBDA:

CL-USER> (lisp-implementation-type)
"SBCL"
CL-USER> (lisp-implementation-version)
"2.3.11"
CL-USER> (setf *print-pretty* nil)
NIL
CL-USER> (sb-cltl2:macroexpand-all '(lambda () (+ 1 2)))
(LAMBDA NIL (+ 1 2))
CL-USER> (macroexpand '(lambda () (+ 1 2)))
(FUNCTION (LAMBDA NIL (+ 1 2)))
T

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.