chiark / gitweb /
Got rid of warnings
[clg] / gffi / virtual-slots.lisp
index 21af52d1f68300e74aef091de85f341e28962c41..fb4a9cb66a61935f68830541ae72ef719de506de 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)))