unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* goops: union for class-slots
@ 2003-07-10  6:58 Anders Vinjar
  0 siblings, 0 replies; only message in thread
From: Anders Vinjar @ 2003-07-10  6:58 UTC (permalink / raw)


In goops.scm theres a method 'class-slots which can be defined
for a new meta-class.  So a quick question: does anyone already
have a method on 'class-slots which returns the union of the
various slot-definitions for a class?

what i'd like:

(define-class <super> ()
  (name #:init-keyword #:name #:init-form 'joe #:getter sname))

(define-class <sub> (<super>)
  (name #:accessor sname))

and have 

(make <sub>)

return an object with 'name initialized to 'joe.

-anders


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-10  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-10  6:58 goops: union for class-slots Anders Vinjar

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