From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.bugs Subject: bug#19770: goops - setter inheritance bug - serious Date: Wed, 4 Feb 2015 13:43:58 -0200 Message-ID: <20150204134358.3bf9ace3@capac> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/pRC+e_Hzk2=+Dw4P6+WSg7n"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1423064726 4052 80.91.229.3 (4 Feb 2015 15:45:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2015 15:45:26 +0000 (UTC) To: 19770@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Feb 04 16:45:22 2015 Return-path: Envelope-to: guile-bugs@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 1YJ28o-0006uz-1h for guile-bugs@m.gmane.org; Wed, 04 Feb 2015 16:45:22 +0100 Original-Received: from localhost ([::1]:37000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ28n-0004LV-7S for guile-bugs@m.gmane.org; Wed, 04 Feb 2015 10:45:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ28a-00044X-HN for bug-guile@gnu.org; Wed, 04 Feb 2015 10:45:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ28V-0004qQ-Hi for bug-guile@gnu.org; Wed, 04 Feb 2015 10:45:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ28V-0004qI-ER for bug-guile@gnu.org; Wed, 04 Feb 2015 10:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YJ28T-000412-Vi for bug-guile@gnu.org; Wed, 04 Feb 2015 10:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Pirotte Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 04 Feb 2015 15:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19770 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.142306469415395 (code B ref -1); Wed, 04 Feb 2015 15:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2015 15:44:54 +0000 Original-Received: from localhost ([127.0.0.1]:34040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJ28L-00040F-NO for submit@debbugs.gnu.org; Wed, 04 Feb 2015 10:44:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43272) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YJ28K-000403-41 for submit@debbugs.gnu.org; Wed, 04 Feb 2015 10:44:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ289-0004cu-ND for submit@debbugs.gnu.org; Wed, 04 Feb 2015 10:44:46 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ289-0004co-Km for submit@debbugs.gnu.org; Wed, 04 Feb 2015 10:44:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ283-0003ZO-MN for bug-guile@gnu.org; Wed, 04 Feb 2015 10:44:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ27y-0004PR-Iz for bug-guile@gnu.org; Wed, 04 Feb 2015 10:44:35 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:42264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ27y-0004Lb-DM for bug-guile@gnu.org; Wed, 04 Feb 2015 10:44:30 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 79545A04C0CD for ; Wed, 4 Feb 2015 16:44:08 +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 u6izM4sOuSQ7 for ; Wed, 4 Feb 2015 16:44:01 +0100 (CET) Original-Received: from capac (unknown [179.210.33.24]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 6E5ABA04C120 for ; Wed, 4 Feb 2015 16:44:01 +0100 (CET) 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-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7720 Archived-At: --Sig_/pRC+e_Hzk2=+Dw4P6+WSg7n Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, GNU Guile 2.0.11.114-649ec goops - setter inheritance bug severity - serious setters are beeing redefined, not inhereted: this is a serious bug. Cheers, David --8<---------------cut here---------------start------------->8--- (define-module (a) #:use-module (oop goops) #:export ( !width)) (define-class () (width #:accessor !width #:init-keyword #:width #:init-value 0)) (define-method ((setter !width) (self ) width) ;; here comes complex code, computing earth orbit, captain's age... (pk "this is !width setter method, hello!") (slot-set! self 'width width)) --8<---------------cut here---------------start------------->8--- --8<---------------cut here---------------start------------->8--- (define-module (b) #:use-module (oop goops) #:use-module (a) #:export () #:re-export (!width)) (define-class ()) --8<---------------cut here---------------start------------->8--- GNU Guile 2.0.11.114-649ec Copyright (C) 1995-2014 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)>=20 scheme@(guile-user)> ,use (oop goops) scheme@(guile-user)> ,use (b) ;;; note: source file ./b.scm ;;; newer than compiled /home/david/.cache/guile/ccache/2.0-LE-8-2.0/= usr/alto/projects/guile-tests/goops/setter-inheritance-bug/b.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling ./b.scm ;;; note: source file ./a.scm ;;; newer than compiled /home/david/.cache/guile/ccache/2.0-LE-8-2.0/= usr/alto/projects/guile-tests/goops/setter-inheritance-bug/a.scm.go ;;; compiling ./a.scm ;;; compiled /home/david/.cache/guile/ccache/2.0-LE-8-2.0/usr/alto/projects= /guile-tests/goops/setter-inheritance-bug/a.scm.go ;;; compiled /home/david/.cache/guile/ccache/2.0-LE-8-2.0/usr/alto/projects= /guile-tests/goops/setter-inheritance-bug/b.scm.go scheme@(guile-user)> (set! (!width (make )) 20) $2 =3D 20 scheme@(guile-user)>=20 =20 --Sig_/pRC+e_Hzk2=+Dw4P6+WSg7n Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJU0j4+AAoJEPN0/ZOjBXrXJ48H/REswLwdPIYTOx6nxExl/X6j vLCGn6attnU6H4/Uk7J66MuoMbwvLs/2nveM/N4eNY2VAGurUVigTXooPezfJtGB DoY85sHQ9daah8KlxIhZXw1VpPLtayXMbhwI5KN7RXLgJnbMYAHV2xM4NBraYfb9 seJcUbEvzPWhVjU0WuSUASknCZ8UNBRaKLKtTMsMcFIcdd/TzxSt6O5UTKqXSf5y pVGaf8ZlZFl3m2ruaZfdTPOqJecUYmUHbaKn254lN/IgxgYuc8IEyWio8R7Jgp4Q jlT4hFZ24cNDtfsSt3c+pfVHqzGeTTRZHvFwo8mdoCUJjXJwHwyn6T0ipXPd8LE= =zQV6 -----END PGP SIGNATURE----- --Sig_/pRC+e_Hzk2=+Dw4P6+WSg7n--