X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/88f2b61bbb65eb24f55a9e3e55532f1379b00875..53a94300685e9c34f59fa8889b22b0cbdd612428:/glib/proxy.lisp diff --git a/glib/proxy.lisp b/glib/proxy.lisp index 4176447..7831a76 100644 --- a/glib/proxy.lisp +++ b/glib/proxy.lisp @@ -15,7 +15,7 @@ ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -;; $Id: proxy.lisp,v 1.6 2001-10-21 16:55:39 espen Exp $ +;; $Id: proxy.lisp,v 1.7 2002-01-20 14:52:04 espen Exp $ (in-package "GLIB") @@ -285,19 +285,18 @@ (defmethod compute-virtual-slot-accessors (slotd effective-virtual-alien-slot-definition) direct-slotds) (destructuring-bind (getter setter) (call-next-method) - (let ((class-name (class-name class))) - (with-slots (type) slotd - (list - (if (stringp getter) - (let ((getter (mkbinding-late getter type 'pointer))) - #'(lambda (object) - (funcall getter (proxy-location object)))) - getter) - (if (stringp setter) - (let ((setter (mkbinding-late setter 'nil 'pointer type))) - #'(lambda (value object) - (funcall setter (proxy-location object) value))) - setter)))))) + (with-slots (type) slotd + (list + (if (stringp getter) + (let ((getter (mkbinding-late getter type 'pointer))) + #'(lambda (object) + (funcall getter (proxy-location object)))) + getter) + (if (stringp setter) + (let ((setter (mkbinding-late setter 'nil 'pointer type))) + #'(lambda (value object) + (funcall setter (proxy-location object) value))) + setter))))) (defmethod compute-slots ((class proxy-class)) (with-slots (direct-slots size) class