From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Inheriting from foreign objects Date: 09 Apr 2002 20:21:19 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <873cy47mxs.fsf@alice.rhinosaur.lan> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1018376665 18844 127.0.0.1 (9 Apr 2002 18:24:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2002 18:24:25 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16v0I4-0004tp-00 for ; Tue, 09 Apr 2002 20:24:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16v0Hj-0007sb-00; Tue, 09 Apr 2002 14:24:03 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16v0Et-0007oe-00 for ; Tue, 09 Apr 2002 14:21:07 -0400 Original-Received: (qmail 5254 invoked by uid 0); 9 Apr 2002 18:21:02 -0000 Original-Received: from unknown (HELO alice.rhinosaur.lan) (62.47.190.151) by mail.gmx.net (mp010-rz3) with SMTP; 9 Apr 2002 18:21:02 -0000 Original-Received: from andy by alice.rhinosaur.lan with local (Exim 3.35 #1 (Debian)) id 16v0F6-0001qh-00 for ; Tue, 09 Apr 2002 20:21:20 +0200 Original-To: guile-devel@gnu.org Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:344 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:344 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