On this page:
prop: print-convert-constructor-name
print-convert-named-constructor?
print-convert-constructor-name
Version: 4.1

 (require mzlib/pconvert-prop)

prop:print-convert-constructor-name : property?

(print-convert-named-constructor? v)  any

  v : any/c

(print-convert-constructor-name v)  any

  v : any/c

The prop:print-convert-constructor-name property can be given a symbol value for a structure type. In that case, for constructor-style print conversion via print-convert, instances of the structure are shown using the symbol as the constructor name. Otherwise, the constructor name is determined by prefixing make- onto the result of object-name.

The print-convert-named-constructor? predicate recognizes instances of structure types that have the prop:print-convert-constructor-name property, and print-convert-constructor-name extracts the property value.