TRACE :PRINT doesn't handle multiple values
Bug #457053 reported by
Leslie P. Polzer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
This is SBCL 1.0.31.26, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
CL-USER(1): (defun foo nil)
FOO
CL-USER(2): (trace :print (values 1 2) foo)
(FOO)
CL-USER(3): (foo)
0: (FOO)
0: (VALUES 1 2) = 1
0: FOO returned NIL
NIL
CL-USER(4):
I expected to see both values.
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
From TRACE docstring:
:PRINT Form
:PRINT-AFTER Form
:PRINT-ALL Form
In addition to the usual printout, the result of evaluating Form is
printed at the start of the function, at the end of the function, or
both, according to the respective option. Multiple print options cause
multiple values to be printed.
So, this behaviour is by design as far as I can tell. (If there are good use-case for handling multiple values, please file a new bug describing the desired functionality.)