unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Remove objprop.c from libguile?
@ 2002-03-15 13:52 Neil Jerram
  2002-03-15 21:32 ` Marius Vollmer
  2002-03-15 21:35 ` Marius Vollmer
  0 siblings, 2 replies; 6+ messages in thread
From: Neil Jerram @ 2002-03-15 13:52 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-04-03  8:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-15 13:52 Remove objprop.c from libguile? Neil Jerram
2002-03-15 21:32 ` 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

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).