From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel Subject: Re: goops - guile-clutter unexpected bug while using #:virtual slot allocation for a subclass Date: Mon, 26 Jan 2015 23:00:44 -0200 Message-ID: <20150126230044.2d1e71de@capac> References: <20141219174633.6efb845e@capac> <8761btfcni.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/FjK0f/LJm5MKJ2AkDFD=xbd"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1422320488 18705 80.91.229.3 (27 Jan 2015 01:01:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 01:01:28 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Jan 27 02:01:27 2015 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YFuWx-0007US-Tn for guile-devel@m.gmane.org; Tue, 27 Jan 2015 02:01:24 +0100 Original-Received: from localhost ([::1]:44762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFuWx-0000gV-5E for guile-devel@m.gmane.org; Mon, 26 Jan 2015 20:01:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFuWu-0000gN-KL for guile-devel@gnu.org; Mon, 26 Jan 2015 20:01:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFuWq-0008Aj-Sx for guile-devel@gnu.org; Mon, 26 Jan 2015 20:01:20 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:41414) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFuWq-00084a-My for guile-devel@gnu.org; Mon, 26 Jan 2015 20:01:16 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 4C0C2A04C160; Tue, 27 Jan 2015 02:00:55 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id YApF4WsHV4-Q; Tue, 27 Jan 2015 02:00:48 +0100 (CET) Original-Received: from capac (unknown [177.17.24.22]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id D7114A04C155; Tue, 27 Jan 2015 02:00:47 +0100 (CET) In-Reply-To: <8761btfcni.fsf@pobox.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 79.99.200.102 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17638 Archived-At: --Sig_/FjK0f/LJm5MKJ2AkDFD=xbd Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello Andy, > > It would be really nice if someone can help me with the following unexp= ected bug: >> ... > What is the bug? =20 I don't think I could better summarize then what I did in the subject: guile-clutter unexpected bug while using #:virtual slot allocation for a subclass > The top part that you list that does not use guile-gnome works fine Indeed, I wrote it to make it clear to you [and who would read my message eventually] that I was well aware, reporting it, that it was _not_ a goops = bug, but a guile-gnome bug :) > and I don't want to bring guile-gnome into consideration when looking for= GOOPS > bugs :) Sure, I wouldn't either :) > Can you still reproduce the bug on stable-2.0 or master? Yes, on stable-2.0 [no master here yet, apart from myself of course :)] > Can you make a test case without guile-gnome? No, it is a guile-gnome problem/bug, so here below, a very short test case = (*) Thanks, David (*) I agree with you that this is less important then goops bugs of course,= and I would be particularly interested to get the setters inheritance bug solved = before anything else [if not done already as I write this answer :)]. Beside I fo= und a way to circumvent this problem, not perfect but ok, so no rush for this one. ;; module virtual-slot.scm starts here (define-module (virtual-slot) #:use-module (oop goops) #:use-module (gnome-2) #:use-module (gnome clutter) #:export ( !colour)) (define-class () (colour #:accessor !colour #:init-keyword #:colour #:allocation #:virtual #:slot-ref (lambda (obj) (get-background-color obj)) #:slot-set! (lambda (obj value) (set-background-color obj value)))) ;; module ends here ... ,use (oop goops) ,use (gnome-2) ,use (gnome clutter) ,use (virtual-slot) (make #:colour (clutter-color-from-string "Red")) =3D> ERROR: Throw to key `gruntime-error' with args `("%scm->gtype-instance= " "Object ~A has been destroyed." (#< 251db20>) ())'. --Sig_/FjK0f/LJm5MKJ2AkDFD=xbd Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJUxuM8AAoJEPN0/ZOjBXrXUsIH/jlYyPGMYj+QW4i5YwUemXza acTx45QmAv7ePAd1YbGkvFLIxbht1rfzzhsTME/iynJWEwoe74MIycRi/Iblco5G pzUnMb3bJcoDoGyo4x2e2W3WWIN5rLBYMvBZZcUCxpVDyBKi1AlH9/48FbicgFR1 u0con6yf2xtDQWkffs/uaFSVWrgDG7iazJrfPIDQwSNDy8JT1h9CBZgUg6/BzQS1 /zE28+E3ibBNymZGhGNb/NUcQbRbpipYJQ7zXN309sQSo5FMGNR2Zf9dO5JCQuPK tUUdPYfsO8BqOJ999/gBIVJIVdqURA5HpvY7U0KlWZ6gAMIWlFRAf+WPkjmsVeE= =6f0s -----END PGP SIGNATURE----- --Sig_/FjK0f/LJm5MKJ2AkDFD=xbd--