Next: , Previous: , Up: Packages   [Contents][Index]

5.5 Records

SCM provides user-definable datatypes with the same interface as SLIB, see See Records in SLIB, with the following extension.

Function: record-printer-set! rtd printer

Causes records of type rtd to be printed in a user-specified format. rtd must be a record type descriptor returned by make-record-type, printer a procedure accepting three arguments: the record to be printed, the port to print to, and a boolean which is true if the record is being written on behalf of write and false if for display. If printer returns #f, the default record printer will be called.

A printer value of #f means use the default printer.

Only the default printer will be used when printing error messages.


Next: , Previous: , Up: Packages   [Contents][Index]