close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 3002 for branches


Ignore:
Timestamp:
2015-06-21T15:42:37-07:00 (10 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r2952 r3002  
    154154  self)
    155155
    156 (defun copy-monom (m)
    157   (make-instance 'monom
    158                  :dimension (monom-dimension m)
    159                  :exponents (copy-seq (monom-exponents m))))
     156(defmethod copy-instance :around ((object monom))
     157  (declare (ignore object))
     158  (let ((copy (call-next-method)))
     159    (setf (monom-exponents copy (copy-seq (monom-exponents copy))))
     160    copy))
    160161
    161162(defmethod r* ((m1 monom) (m2 monom))
Note: See TracChangeset for help on using the changeset viewer.