mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 23:10:21 +02:00
Fix foreign objects for removal of getters-n-setters
* module/system/foreign-object.scm (getter-method): Fix for removal of getters-n-setters property.
This commit is contained in:
parent
c6fb41fcbf
commit
7c49985fac
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; Wrapping foreign objects in Scheme
|
;;; Wrapping foreign objects in Scheme
|
||||||
|
|
||||||
;;; Copyright (C) 2014 Free Software Foundation, Inc.
|
;;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
|
||||||
;;;
|
;;;
|
||||||
;;; This library is free software; you can redistribute it and/or
|
;;; This library is free software; you can redistribute it and/or
|
||||||
;;; modify it under the terms of the GNU Lesser General Public
|
;;; modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
(define (getter-method class slot-name existing)
|
(define (getter-method class slot-name existing)
|
||||||
(let ((getter (ensure-generic existing slot-name))
|
(let ((getter (ensure-generic existing slot-name))
|
||||||
(slot-def (or (assq slot-name (slot-ref class 'getters-n-setters))
|
(slot-def (or (class-slot-definition class slot-name)
|
||||||
(slot-missing class slot-name))))
|
(slot-missing class slot-name))))
|
||||||
(add-method! getter (compute-getter-method class slot-def))
|
(add-method! getter (compute-getter-method class slot-def))
|
||||||
getter))
|
getter))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue