From: Neil Jerram <neil@ossau.uklinux.net>
Subject: Remove objprop.c from libguile?
Date: 15 Mar 2002 13:52:20 +0000 [thread overview]
Message-ID: <m37koe3pm3.fsf@laruns.ossau.uklinux.net> (raw)
While documenting `make-object-property', I noticed that we could (in
HEAD CVS) remove objprop.c completely and replace it by the following
compatibility definitions (possibly deprecated):
(define old-properties (make-object-property))
(define (object-properties obj)
"Return @var{obj}'s property list."
(or (old-properties obj) '()))
(define (set-object-properties! obj alist)
"Set @var{obj}'s property list to @var{alist}."
(set! (old-properties obj) alist))
(define (object-property obj key)
"Return the property of @var{obj} with name @var{key}."
(assq-ref (object-properties obj) key))
(define (set-object-property! obj key value)
"In @var{obj}'s property list, set the property named @var{key} to @var{value}."
(set-object-properties! obj (assq-set! (object-properties obj) key value)))
(export object-properties
set-object-properties!
object-property
set-object-property!)
Good idea?
Neil
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next reply other threads:[~2002-03-15 13:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-15 13:52 Neil Jerram [this message]
2002-03-15 21:32 ` Remove objprop.c from libguile? Marius Vollmer
2002-03-17 14:49 ` Neil Jerram
2002-03-20 22:06 ` Marius Vollmer
2002-04-03 8:09 ` Thien-Thi Nguyen
2002-03-15 21:35 ` Marius Vollmer
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=m37koe3pm3.fsf@laruns.ossau.uklinux.net \
--to=neil@ossau.uklinux.net \
/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).