Changeset 2901
- Timestamp:
- 2015-06-21T12:14:08-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/term.lisp
r2900 r2901 75 75 (setf (slot-value self 'coeff) coeff))))) 76 76 77 ;; Changing an instance of class MONOM to class TERM may also 78 ;; happen when OLD is an instance of TERM, in which case the 79 ;; value of the coefficient should be preserved. 80 (defmethod update-instance-for-different-class ((old monom) 81 (new term) 82 &key) 83 (call-next-method) 77 ;; Changing an instance of class MONOM to class TERM may also 78 ;; happen when OLD is an instance of TERM, in which case the 79 ;; value of the coefficient should be preserved. 80 (defmethod update-instance-for-different-class ((old monom) (new term) &key) 81 (call-next-method) 84 82 (unless (slot-boundp new 'coeff) 85 83 (setf (term-coeff new) 1)))
Note:
See TracChangeset
for help on using the changeset viewer.