From: Andreas Rottmann <a.rottmann@gmx.at>
Subject: Inheriting from foreign objects
Date: 09 Apr 2002 20:21:19 +0200 [thread overview]
Message-ID: <873cy47mxs.fsf@alice.rhinosaur.lan> (raw)
Hi!
I have run into a problem: I create classes from C (C++) using
scm_make_class(). These classes all get the SCM_CLASSF_FOREIGN bit set
to treat them as foreign objects (like invoke the constructor &
desctructor supplied).
So far, so good. However, when I derive from these classes (on the
Scheme level), the new class has also the FOREIGN bit set (it's
inherited in scm_sys_inherit_magic_x(), AFAICT), but the constructor
set NULL, which causes %allocate-instance bails out when trying to
instantiate the class.
Is there a way I can cleanly derive from C-created classes?
BTW, I'm using the current CVS code.
Regards, Andy
--
Andreas Rottmann | Dru@ICQ | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next reply other threads:[~2002-04-09 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-09 18:21 Andreas Rottmann [this message]
2002-04-10 19:47 ` Inheriting from foreign objects Neil Jerram
2002-04-23 20:43 ` Thien-Thi Nguyen
2002-04-30 10:23 ` Andreas Rottmann
2002-05-15 12:30 ` Thien-Thi Nguyen
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=873cy47mxs.fsf@alice.rhinosaur.lan \
--to=a.rottmann@gmx.at \
/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).