From: Kevin Ryde <user42@zip.com.au>
To: guile-devel@gnu.org
Subject: doc make-record-type printer func
Date: Wed, 14 Feb 2007 08:39:07 +1100 [thread overview]
Message-ID: <873b59wxdw.fsf@zip.com.au> (raw)
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
reply other threads:[~2007-02-13 21:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873b59wxdw.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).