Changeset 2900
- Timestamp:
- 2015-06-21T12:13:33-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/term.lisp
r2899 r2900 75 75 (setf (slot-value self 'coeff) coeff))))) 76 76 77 (defmethod update-instance-for-different-class78 ((old monom)79 (new term)80 &key)81 77 ;; Changing an instance of class MONOM to class TERM may also 82 78 ;; happen when OLD is an instance of TERM, in which case the 83 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) 84 84 (unless (slot-boundp new 'coeff) 85 (setf (term-coeff new) 1)) 86 (call-next-method)) 85 (setf (term-coeff new) 1))) 86 87 87 88 88 #|
Note:
See TracChangeset
for help on using the changeset viewer.