Changeset 2749 for branches/f4grobner
- Timestamp:
- 2015-06-20T19:07:00-07:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/polynomial.lisp
r2748 r2749 149 149 (uminus-method-name nil uminus-method-name-supplied-p))) 150 150 "This macro avoids code duplication for two similar operations: ADD-TO and SUBTRACT-FROM." 151 `(defmethod , method-name ((self poly) (other poly))151 `(defmethod ,add/subtract-method-name ((self poly) (other poly)) 152 152 ,@(when doc-string-supplied-p `(,doc-string)) 153 153 (with-slots ((termlist1 termlist) (order1 order)) … … 162 162 termlist1 termlist2 order1 163 163 #',add/subtract-method-name 164 , (when uminus-method-name-supplied-p165 #'uminus-method-name)))))164 ,@(when uminus-method-name-supplied-p 165 `(#',uminus-method-name)))))) 166 166 self)) 167 167
Note:
See TracChangeset
for help on using the changeset viewer.