(rontolisp) docs
← IO

print-dup

(print-dup x w)

x printed on the writer w as pr prints it, answering nil -- except an array map (eight or fewer entries) and the sorted collections, which print as the oracle's readable #= constructions. A (defmethod print-dup C ...) of a record, a deftype or a host class writes a value of it, the same dispatch values print-method takes; a program print-method never applies (the oracle's print-dup is its own multimethod). A record, a queue and every other value print as pr prints them, where the oracle prints their toString. A writer that is no stream is a ClassCastException. As a value two arguments.