mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 06:41:13 +02:00
Rename set-record-printer!
* doc/ref/srfi-modules.texi: set-record-printer! -> set-record-type-printer!
This commit is contained in:
parent
3d82d9a62d
commit
45f3d9b6db
1 changed files with 2 additions and 3 deletions
|
@ -1924,12 +1924,11 @@ desired, exported from a module, etc.
|
||||||
|
|
||||||
@unnumberedsubsubsec Custom Printers
|
@unnumberedsubsubsec Custom Printers
|
||||||
|
|
||||||
You may use @code{set-record-printer!} to customize the default printing
|
You may use @code{set-record-type-printer!} to customize the default printing
|
||||||
behavior of records. This is a Guile extension and is not part of SRFI-9. It is
|
behavior of records. This is a Guile extension and is not part of SRFI-9. It is
|
||||||
located in the @nicode{(srfi srfi-9 gnu)} module.
|
located in the @nicode{(srfi srfi-9 gnu)} module.
|
||||||
|
|
||||||
|
@deffn {Scheme Syntax} set-record-type-printer! name thunk
|
||||||
@deffn {Scheme Syntax} set-record-printer! name thunk
|
|
||||||
Where @var{type} corresponds to the first argument of @code{define-record-type},
|
Where @var{type} corresponds to the first argument of @code{define-record-type},
|
||||||
and @var{thunk} is a procedure accepting two arguments, the record to print, and
|
and @var{thunk} is a procedure accepting two arguments, the record to print, and
|
||||||
an output port.
|
an output port.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue