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 3164


Ignore:
Timestamp:
2015-06-22T13:15:01-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/term.lisp

    r3163 r3164  
    7979|#
    8080
    81 (defmethod update-instance-for-different-class ((old monom) (new term)
    82                                                 &rest initargs &key &allow-other-keys)
    83   ;; Changing an instance of class MONOM to class TERM may also
    84   ;; happen when OLD is an instance of TERM, in which case the
    85   ;; value of the coefficient should be preserved.
    86   `(call-next-method :coeff 1 ,@initargs))
     81(defmethod update-instance-for-different-class :after ((old monom) (new term)
     82                                                &rest
     83                                                  initargs
     84                                                &key
     85                                                  &allow-other-keys)
     86  (setf (scalar-coeff new) 1)) 
     87
    8788
    8889#|
Note: See TracChangeset for help on using the changeset viewer.