From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: Inheriting from foreign objects Date: 10 Apr 2002 20:47:13 +0100 Sender: guile-devel-admin@gnu.org Message-ID: References: <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 1018468292 31911 127.0.0.1 (10 Apr 2002 19:51:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2002 19:51:32 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16vO7v-0008IS-00 for ; Wed, 10 Apr 2002 21:51:31 +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 16vO7Y-00031M-00; Wed, 10 Apr 2002 15:51:08 -0400 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16vO6f-0002pV-00 for ; Wed, 10 Apr 2002 15:50:13 -0400 Original-Received: from portalet.ossau.uklinux.net (IDENT:root@ppp-2a-133.3com.telinco.net [212.159.130.133]) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id g3AJo6l29971; Wed, 10 Apr 2002 20:50:06 +0100 Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (neil@laruns.ossau.uklinux.net [192.168.1.3]) by portalet.ossau.uklinux.net (8.9.3/8.8.7) with ESMTP id UAA19690; Wed, 10 Apr 2002 20:50:55 +0100 Original-To: Andreas Rottmann In-Reply-To: <873cy47mxs.fsf@alice.rhinosaur.lan> Original-Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.9 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:352 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:352 >>>>> "Andreas" == Andreas Rottmann writes: Andreas> Hi! Andreas> I have run into a problem: I create classes from C (C++) using Andreas> scm_make_class(). These classes all get the SCM_CLASSF_FOREIGN bit set Andreas> to treat them as foreign objects (like invoke the constructor & Andreas> desctructor supplied). Andreas> So far, so good. However, when I derive from these classes (on the Andreas> Scheme level), the new class has also the FOREIGN bit set (it's Andreas> inherited in scm_sys_inherit_magic_x(), AFAICT), but the constructor Andreas> set NULL, which causes %allocate-instance bails out when trying to Andreas> instantiate the class. Andreas> Is there a way I can cleanly derive from C-created classes? I'd say you're in virgin territory here, and that any advice you can give on such problems, and on defining a C API for GOOPS, would be very useful. (Sorry that wasn't much help! Good luck.) Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel