Skip to content

print-object isn't specialized on each builtin-type

> (find-method #'print-object nil '(hash-table t))

Condition of type: SIMPLE-ERROR
There is no method on the generic function PRINT-OBJECT that agrees on qualifiers NIL and specializers (HASH-TABLE T)

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SI:BYTECODES. [Evaluation of: (FIND-METHOD #'PRINT-OBJECT NIL '(HASH-TABLE T))] In: #<process TOP-LEVEL>.

Generally there is no method specialization on hash-table (ECL uses write_ugly interface and print-object is specialized on something higher in the precedence list - probably).

// edit: as pointed by Diogo Franco, wrong paste (corrected this)