* doc make-record-type printer func
@ 2007-02-13 21:39 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2007-02-13 21:39 UTC (permalink / raw)
To: guile-devel
Unless it's meant to be a secret :), I thought I'd show the printer
func argument of make-record-type in the manual,
-- Scheme Procedure: make-record-type type-name field-names [printer]
Create and return a new "record-type descriptor".
TYPE-NAME is a string naming the type. Currently it's only used
in the printed representation of records, and in diagnostics.
FIELD-NAMES is a list of symbols naming the fields of a record of
the new type. Duplicates are not allowed among these symbols.
(make-record-type "employee" '(name age salary))
The optional PRINTER argument is a function for printing a record
of the new type. It's called as `(PRINTER record port)' and
should look at RECORD and write to PORT.
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-13 21:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13 21:39 doc make-record-type printer func Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).