From unknown Mon Jun 23 18:26:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17355 <17355@debbugs.gnu.org> To: bug#17355 <17355@debbugs.gnu.org> Subject: Status: #:getter procedure returns unexpected value in GOOPS Reply-To: bug#17355 <17355@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:26:15 +0000 retitle 17355 #:getter procedure returns unexpected value in GOOPS reassign 17355 guile submitter 17355 "Diogo F. S. Ramos" severity 17355 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 27 00:53:42 2014 Received: (at submit) by debbugs.gnu.org; 27 Apr 2014 04:53:42 +0000 Received: from localhost ([127.0.0.1]:59458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeH5w-0007gV-Py for submit@debbugs.gnu.org; Sun, 27 Apr 2014 00:53:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36635) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WeE8X-0001rx-Gj for submit@debbugs.gnu.org; Sat, 26 Apr 2014 21:44:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeE8O-0001N0-2W for submit@debbugs.gnu.org; Sat, 26 Apr 2014 21:44:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeE8O-0001Mw-01 for submit@debbugs.gnu.org; Sat, 26 Apr 2014 21:44:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeE8H-0003QD-R2 for bug-guile@gnu.org; Sat, 26 Apr 2014 21:43:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WeE8B-0001L0-MU for bug-guile@gnu.org; Sat, 26 Apr 2014 21:43:53 -0400 Received: from mx1.riseup.net ([198.252.153.129]:53379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WeE8B-0001Kk-Gr for bug-guile@gnu.org; Sat, 26 Apr 2014 21:43:47 -0400 Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 6071D563A7 for ; Sat, 26 Apr 2014 18:43:46 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dfsr@fruiteater.riseup.net) with ESMTPSA id 60E00E8C From: "Diogo F. S. Ramos" To: bug-guile@gnu.org Subject: #:getter procedure returns unexpected value in GOOPS Date: Sat, 26 Apr 2014 22:43:41 -0300 Message-ID: <871twjh7hu.fsf@nebulosa.milkyway> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: clamav-milter 0.98.1 at mx1 X-Virus-Status: Clean 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 27 Apr 2014 00:53:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) When using GOOPS, if a class has a second slot, the #:getter procedure of the first slot returns the value of the second slot when applied to an instance of a subclass. --8<---------------cut here---------------start------------->8--- (use-modules (oop goops)) (define-class () (a #:init-form 'foo #:getter foo-a) (b #:init-form 42)) (define-class () (a #:init-form 'bar)) --8<---------------cut here---------------end--------------->8--- (foo-a (make )) => foo (foo-a (make )) => 42 I expected: (foo-a (make )) => bar I'm using Guile 2.0.11. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 10 12:10:58 2014 Received: (at control) by debbugs.gnu.org; 10 Dec 2014 17:10:58 +0000 Received: from localhost ([127.0.0.1]:41851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xykmv-0000ge-Sm for submit@debbugs.gnu.org; Wed, 10 Dec 2014 12:10:58 -0500 Received: from world.peace.net ([50.252.239.5]:35657 ident=hope5) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xykms-0000gW-LN for control@debbugs.gnu.org; Wed, 10 Dec 2014 12:10:55 -0500 Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Xykmm-0005FR-6H; Wed, 10 Dec 2014 12:10:48 -0500 From: Mark H Weaver To: control@debbugs.gnu.org Date: Wed, 10 Dec 2014 12:09:02 -0500 Message-ID: <87r3w7a0up.fsf@yeeloong.lan> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 17355 important thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 17355 important thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject severity 17355 important thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 21 09:12:34 2016 Received: (at 17355-done) by debbugs.gnu.org; 21 Jun 2016 13:12:34 +0000 Received: from localhost ([127.0.0.1]:48775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFLTl-00037h-QH for submit@debbugs.gnu.org; Tue, 21 Jun 2016 09:12:33 -0400 Received: from pb-sasl1.pobox.com ([64.147.108.66]:57411 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFLTj-00037Z-Rb for 17355-done@debbugs.gnu.org; Tue, 21 Jun 2016 09:12:32 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 2AA6822D6D; Tue, 21 Jun 2016 09:12:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=EvtkidHk9GKJs7gtszthxK3lWw8=; b=t33JIJ yBpu+0uloSciWMjfj6XKxA2BJrEjFh1Dt9Ec9k32EPjeKEoSfMyTBvSk3iCWuNAK 3S4+7ItUTmWeYifWYiuK1tfmnC13+E1FgQfQpomnciJY+Vrz9D0V/5QJz/tvhjbF 6J8ZyNzGsaYyjFOg6HG8S051PTx1tCy3RVI5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=p8PdpeYU0ua0BlODPq9+TKS7lq/RS9ko 9DT+pyVQl+CqW7VL9ixTE720VX3Va1Zk3pCPaYCAMyoEUtasiFkvRv/Yz5zi2AQm PWdUKsCc9weaqVu6YIUZ8I/CqvrrzhGuRMM27yr+/QJF8aq+pybwxEUZDVLpPGBs vT23L5YfG2M= Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 23F7722D6C; Tue, 21 Jun 2016 09:12:30 -0400 (EDT) Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 43AEC22D6B; Tue, 21 Jun 2016 09:12:29 -0400 (EDT) From: Andy Wingo To: "Diogo F. S. Ramos" Subject: Re: bug#17355: #:getter procedure returns unexpected value in GOOPS References: <871twjh7hu.fsf@nebulosa.milkyway> Date: Tue, 21 Jun 2016 15:12:22 +0200 In-Reply-To: <871twjh7hu.fsf@nebulosa.milkyway> (Diogo F. S. Ramos's message of "Sat, 26 Apr 2014 22:43:41 -0300") Message-ID: <8760t2znwp.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: CE8FEC0C-37B1-11E6-A728-C1836462E9F6-02397024!pb-sasl1.pobox.com X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: 17355-done Cc: 17355-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Thanks for the report! This is fixed in Guile 2.0.11 and in 2.1.x, though the full situation is a bit strange. See: http://thread.gmane.org/gmane.lisp.guile.user/11218/focus=11813 Regards, Andy On Sun 27 Apr 2014 03:43, "Diogo F. S. Ramos" writes: > When using GOOPS, if a class has a second slot, the #:getter procedure > of the first slot returns the value of the second slot when applied to > an instance of a subclass. > > (use-modules (oop goops)) > > (define-class () > (a #:init-form 'foo #:getter foo-a) > (b #:init-form 42)) > > (define-class () > (a #:init-form 'bar)) > > (foo-a (make )) => foo > (foo-a (make )) => 42 > > I expected: > > (foo-a (make )) => bar > > I'm using Guile 2.0.11. From unknown Mon Jun 23 18:26:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 20 Jul 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator