[movitz-cvs] CVS movitz
ffjeld
ffjeld at common-lisp.net
Mon Apr 10 11:47:41 UTC 2006
Update of /project/movitz/cvsroot/movitz
In directory clnet:/tmp/cvs-serv4685
Modified Files:
storage-types.lisp
Log Message:
Added missing update-movitz-object method.
--- /project/movitz/cvsroot/movitz/storage-types.lisp 2005/07/21 18:48:33 1.55
+++ /project/movitz/cvsroot/movitz/storage-types.lisp 2006/04/10 11:47:41 1.56
@@ -9,7 +9,7 @@
;;;; Created at: Sun Oct 22 00:22:43 2000
;;;; Distribution: See the accompanying file COPYING.
;;;;
-;;;; $Id: storage-types.lisp,v 1.55 2005/07/21 18:48:33 ffjeld Exp $
+;;;; $Id: storage-types.lisp,v 1.56 2006/04/10 11:47:41 ffjeld Exp $
;;;;
;;;;------------------------------------------------------------------
@@ -1309,6 +1309,10 @@
(assert (= (movitz-ratio-value object) lisp-object))
object)
+(defmethod update-movitz-object ((object movitz-ratio) (lisp-object float))
+ (assert (= (movitz-ratio-value object) (rationalize lisp-object)))
+ object)
+
(defmethod print-object ((x movitz-ratio) stream)
(print-unreadable-object (x stream :type t)
(format stream "~D" (slot-value x 'value)))
More information about the Movitz-cvs
mailing list