unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Inheriting from foreign objects
@ 2002-04-09 18:21 Andreas Rottmann
  2002-04-10 19:47 ` Neil Jerram
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Rottmann @ 2002-04-09 18:21 UTC (permalink / 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


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

end of thread, other threads:[~2002-05-15 12:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-09 18:21 Inheriting from foreign objects Andreas Rottmann
2002-04-10 19:47 ` 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

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