chiark / gitweb /
Bug fix
[clg] / gffi / virtual-slots.lisp
index 2c2263a6785b9c0fca0989dd1b844f06d3e6425c..c6546e775480270f73c83afb079792301299bd4f 100644 (file)
@@ -20,7 +20,7 @@
 ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-;; $Id: virtual-slots.lisp,v 1.5 2006/09/13 10:52:16 espen Exp $
+;; $Id: virtual-slots.lisp,v 1.7 2007/05/10 20:23:56 espen Exp $
 
 (in-package "GFFI")
 
@@ -207,6 +207,8 @@ (defmethod compute-slot-writer-function ((slotd effective-virtual-slot-definitio
     #+sbcl
     (etypecase setter
       (symbol #'(lambda (object value) (funcall setter object value)))
+      (list #'(lambda (object value)
+               (funcall setter value object)))
       (function setter))))
 
 (define-condition slot-can-not-be-unbound (cell-error)
@@ -318,18 +320,22 @@ (defmethod slot-makunbound-using-class
 ;; created.
 #?(or (sbcl>= 0 9 15) (featurep :clisp))
 (defmethod slot-unbound (class (slotd effective-virtual-slot-definition) (name (eql 'reader-function)))
+  (declare (ignore class))
   (setf (slot-value slotd name) (compute-slot-reader-function slotd)))
 
 #?(or (sbcl>= 0 9 15) (featurep :clisp))
 (defmethod slot-unbound (class (slotd effective-virtual-slot-definition) (name (eql 'boundp-function)))
+  (declare (ignore class))
   (setf (slot-value slotd name) (compute-slot-boundp-function slotd)))
 
 #?(or (sbcl>= 0 9 15) (featurep :clisp))
 (defmethod slot-unbound (class (slotd effective-virtual-slot-definition) (name (eql 'writer-function)))
+  (declare (ignore class))
   (setf (slot-value slotd name) (compute-slot-writer-function slotd)))
 
 #?(or (sbcl>= 0 9 15) (featurep :clisp))
 (defmethod slot-unbound (class (slotd effective-virtual-slot-definition) (name (eql 'makunbound-function)))
+  (declare (ignore class))
   (setf (slot-value slotd name) (compute-slot-makunbound-function slotd)))