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 4242


Ignore:
Timestamp:
2016-06-04T19:52:24-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/monom.lisp

    r4241 r4242  
    531531and powers of some variables, such as 5*X^2*Y^3."))
    532532
    533 (defmethod initialize-instance :around ((self term) &rest initargs &key (coeff 1))
     533(defmethod shared-initialize :around ((self term) slot-names &rest initargs &key (coeff 1))
    534534  "A convenience method. If a coefficient is an integer, wrap it in the INTEGER-RING object"
    535   ;; Dispatch on supplied type of coefficient
     535  ;; Dispatch on the type of supplied :COEFF arg
    536536  (typecase coeff
    537537    (integer
    538538     (setf (getf initargs :coeff) (make-instance 'integer-ring :value coeff))))
    539539  ;; Now pass new initargs to the next method
    540   (apply #'call-next-method (cons self initargs)))
     540  (apply #'call-next-method (list* self slot-names initargs)))
     541
    541542 
    542543(defmethod update-instance-for-different-class :after ((old monom) (new term) &key coeff)
Note: See TracChangeset for help on using the changeset viewer.