From: Andy Wingo <wingo@pobox.com>
To: guile-devel@gnu.org
Subject: goops proposal: proper struct classes
Date: Sun, 01 May 2011 22:19:38 +0200 [thread overview]
Message-ID: <m3oc3muqat.fsf@unquote.localdomain> (raw)
Hello all,
If you know GOOPS, then you know that we have classes, rooted at
<class>. And indeed <class> shows up a lot in documentation and in
code. But that's not how it is in CLOS: our <class> corresponds to
their `standard-class'. They have a superclass, called `class', which
is the real root, and from which e.g. structure classes are derived.
We need to do this. Currently, class-of on a struct/record data type
gives a useless class that can't instantiate instances, doesn't know its
slots, and does not reflect the vtable hierarchy.
So we need a <basic-class>, interposed between <class> and <object>,
which will be the real root of our class meta-object hierarchy.
I noticed this while fixing some weak hash table-related bugs today, and
I saw set-struct-vtable-name!, which ends up causing some crazy stuff to
happen (exporting a stub class from (oop goops)), and noticed how wrong
all this was.
Comments?
Andy
--
http://wingolog.org/
next reply other threads:[~2011-05-01 20:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-01 20:19 Andy Wingo [this message]
2011-05-05 16:35 ` goops proposal: proper struct classes Ludovic Courtès
2011-05-05 18:25 ` Andy Wingo
2011-05-05 20:19 ` Ludovic Courtès
2011-05-05 20:39 ` Andy Wingo
2011-11-22 22:23 ` Andy Wingo
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=m3oc3muqat.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--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).