You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PRINT-OBJECT is not used by WRITE family of functions.
Example:
CL-USER> (defclass person ()
... (firstname lastname))
#<standard-class PERSON>
CL-USER> (make-instance 'person)
#<instance PERSON (..) (..) >
CL-USER> (defmethod print-object ((person person) stream)
... (print-unreadable-object (person stream :type t :identity t)
... (format stream "A person")))
#<standard-method PRINT-OBJECT((PERSON PERSON) STREAM)>
CL-USER> (make-instance 'person)
#<instance PERSON (..) (..) >
Not super important, but I stumbled with this when looking at showing lambda-lists for function objects.
I wasn't able to fix the implementation, but changing the implementation of the WRITE has some effect.
The text was updated successfully, but these errors were encountered:
mmontone
added a commit
to mmontone/jscl
that referenced
this issue
Sep 1, 2022
When printing function objects, display its lambda-list.
This could be done via PRINT-OBJECT in theory, but PRINT-OBJECT is not
being dispatch from WRITE function. See issue jscl-project#444
Example of how functions are printed after this commit:
```
CL-USER> #'prin1-to-string
#<FUNCTION PRIN1-TO-STRING (FORM)>
CL-USER> #'prin1
<FUNCTION PRIN1 (FORM &OPTIONAL STREAM)>
```
PRINT-OBJECT is not used by WRITE family of functions.
Example:
Not super important, but I stumbled with this when looking at showing lambda-lists for function objects.
I wasn't able to fix the implementation, but changing the implementation of the WRITE has some effect.
The text was updated successfully, but these errors were encountered: