unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: struct and goops questions
Date: Thu, 27 Dec 2007 19:41:59 +0000	[thread overview]
Message-ID: <874pe32ad4.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <87y7btj64n.fsf@pobox.com> (Andy Wingo's message of "Mon, 17 Dec 2007 23:42:00 +0100")

Andy Wingo <wingo@pobox.com> writes:

> Hi all,
>
> I've been looking at structs a bit recently, and goops' use of them. I
> have some questions:
>
> (1) Why are struct free functions part of instances and not vtables? It
> would seem that they are more appropriate on the vtables (of course
> themselves structs), instead of wasting a word per-instance.
>
> (2) Why are structs double cells? It seems that the last two words are
> always zero.
>
> (3) Where does the word "entity" come from? It seems to be a term to
> describe invokable objects like procedures-with-setters or generics or
> something. Quite confusing, and (it seems) completely undocumented.
>
> (4) What, on a class, are the purpose of slots h0 through h7? They seem
> to be unused, and garbage (opaque foo). For example, try doing a
> (slot-ref <class> 'h0) a few times -- it makes guile segfault for me.
>
> I bet Mikael knows :)

I bet he knows too.  I can't help explain these things, I'm afraid.

  Neil



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


      reply	other threads:[~2007-12-27 19:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-17 22:42 struct and goops questions Andy Wingo
2007-12-27 19:41 ` Neil Jerram [this message]

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=874pe32ad4.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /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).