sb-introspect:function-lambda-list has no meaningful "unknown" value

Bug #1901781 reported by Michał "phoe" Herda on 2020-10-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Douglas Katzman

Bug Description

Via https://github.com/Shinmera/trivial-arguments/issues/7

When the lambda list is unknown (e.g. due to OPTIMIZE DEBUG 0), NIL is returned from sb-introspect:function-lambda-list.

* (sb-introspect:function-lambda-list (locally (declare (optimize (debug 3))) (lambda (x y z) (+ x y z))))
(X Y Z)
* (sb-introspect:function-lambda-list (locally (declare (optimize (debug 0))) (lambda (x y z) (+ x y z))))
NIL

This is confusing because NIL is also a valid lambda list:

* (sb-introspect:function-lambda-list (locally (declare (optimize (debug 3))) (lambda () 42)))
NIL
* (sb-introspect:function-lambda-list (locally (declare (optimize (debug 0))) (lambda () 42)))
NIL

Douglas Katzman (dougk) wrote :
Changed in sbcl:
assignee: nobody → Douglas Katzman (dougk)
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers