From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Anders Vinjar Newsgroups: gmane.lisp.guile.devel Subject: GOOPS: is this a bug? Date: 26 Jul 2003 09:41:46 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: Reply-To: andersvi@notam02.no NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1059204638 7106 80.91.224.249 (26 Jul 2003 07:30:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2003 07:30:38 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 26 09:30:36 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19gJVk-0001qU-00 for ; Sat, 26 Jul 2003 09:30:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19gJWw-00063o-Lj for guile-devel@m.gmane.org; Sat, 26 Jul 2003 03:31:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19gJWm-0005k9-AF for guile-devel@gnu.org; Sat, 26 Jul 2003 03:31:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19gJWb-0005Kd-Sc for guile-devel@gnu.org; Sat, 26 Jul 2003 03:31:30 -0400 Original-Received: from ti211310a080-6329.bb.online.no ([80.212.88.185] helo=niente) by monty-python.gnu.org with esmtp (Exim 4.20) id 19gJWL-0004iF-Og for guile-devel@gnu.org; Sat, 26 Jul 2003 03:31:14 -0400 Original-Received: from niente (localhost.localdomain [127.0.0.1]) by niente (8.12.8/8.12.8) with ESMTP id h6Q7hl4B008072 for ; Sat, 26 Jul 2003 09:43:47 +0200 Original-Received: (from andersvi@localhost) by niente (8.12.8/8.12.8/Submit) id h6Q7gkVG008068; Sat, 26 Jul 2003 09:42:46 +0200 X-Authentication-Warning: niente: andersvi set sender to andersvi@notam02.no using -f Original-To: guile-devel@gnu.org Original-Lines: 45 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.lisp.guile.devel:2647 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2647 [sending this to guile-devel after first trying guile-user, where i got no response. AV.] A question about inheritance of getters/setters and overwriting and such. The following sequence hits an error (guile v. 1.6): (define-class () (sl1 #:init-form 10 #:getter slot)) (define-class () (sl2 #:init-form 100 #:accessor slot)) (define-class () (sl3 #:init-form 'hey #:getter subslot)) (slot (make )) - claiming theres no applicable method for 'slot in the last call. However, (compute-slots (class-of (make ))) returns: ((sl1 #:init-form 10 #:init-thunk # #:getter #< slot (3)>) (sl3 #:init-form (quote hei) #:init-thunk # #:getter #< subslot (1)>)) - indicating there is a generic function 'slot (with 3 methods?) to access the inherited slot. But: (describe slot) - lists only the two methods for and If i leave out the definition of 'slot as an accessor - in - things work as expected with regards to . Is this a bug? If not, how is a way to access the inherited slot by the method specified together with the slot? Anders Vinjar _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel